39Then Pharaoh said to Joseph, “Since God has made all this known to you, there is no one as discerning and wise as you.
40You shall be in charge of my house, and all my people are to obey your commands. Only with regard to the throne will I be greater than you.”
41Pharaoh also told Joseph, “I hereby place you over all the land of Egypt.”
42Then Pharaoh removed the signet ring from his finger, put it on Joseph’s finger, clothed him in garments of fine linen, and placed a gold chain around his neck.
43He had Joseph ride in his second chariot, with men calling out before him, “Bow the knee!” So he placed him over all the land of Egypt.
44And Pharaoh declared to Joseph, “I am Pharaoh, but without your permission, no one in all the land of Egypt shall lift his hand or foot.”
45Pharaoh gave Joseph the name Zaphenath-paneah, and he gave him Asenath daughter of Potiphera, priest of On, to be his wife. And Joseph took charge of all the land of Egypt.
46Now Joseph was thirty years old when he entered the service of Pharaoh king of Egypt. And Joseph left Pharaoh’s presence and traveled throughout the land of Egypt.
47During the seven years of abundance, the land brought forth bountifully.
48During those seven years, Joseph collected all the excess food in the land of Egypt and stored it in the cities. In every city he laid up the food from the fields around it.
— Genesis 41:39-48