So Pharaoh said to Joseph, "Since God has made all this known to you, there is none so discerning and wise as you. You shall be in charge of my court, and by your command shall all my people be directed; only with respect to the throne shall I be superior to you." Pharaoh further said to Joseph, "See, I put you in charge of all the land of Egypt." And removing his signet ring from his hand, Pharaoh put it on Joseph's hand; and he had him dressed in robes of fine linen, and put a gold chain about his neck. He had him ride in the chariot of his second-in-command, and they cried before him, "Abrek!" Thus he placed him over all the land of Egypt.
Pharaoh said to Joseph, "I am Pharaoh; yet without you, no one shall lift up hand or foot in all the land of Egypt." Pharaoh then gave Joseph the name Zaphenath-paneah; and he gave him for a wife Asenath daughter of Poti-phera, priest of On. Thus Joseph emerged in charge of the land of Egypt.-- Joseph was thirty years old when he entered the service of Pharaoh king of Egypt.--Leaving Pharaoh's presence, Joseph traveled through all the land of Egypt.
During the seven years of plenty, the land produced in abundance. And he gathered all the grain of the seven years that the land of Egypt was enjoying, and stored the grain in the cities; he put in each city the grain of the fields around it. So Joseph collected produce in very large quantity, like the sands of the sea, until he ceased to measure it, for it could not be measured.
Before the years of famine came, Joseph became the father of two sons, whom Asenath daughter of Poti-phera, priest of On, bore to him. Joseph named the first-born Manasseh, meaning, "God has made me forget completely my hardship and my parental home." And the second he named Ephraim, meaning, "God has made me fertile in the land of my affliction."