Genesis 41:38-57 ESV
And Pharaoh said to his servants, “Can we find a man like this, in whom is the Spirit of God?” Then Pharaoh said to Joseph, “Since God has shown you all this, there is none so discerning and wise as you are. You shall be over my house, and all my people shall order themselves as you command. Only as regards the throne will I be greater than you.” And Pharaoh said to Joseph, “See, I have set you over all the land of Egypt.” Then Pharaoh took his signet ring from his hand and put it on Joseph’s hand, and clothed him in garments of fine linen and put a gold chain about his neck. And he made him ride in his second chariot. And they called out before him, “Bow the knee!” Thus he set him over all the land of Egypt. Moreover, Pharaoh said to Joseph, “I am Pharaoh, and without your consent no one shall lift up hand or foot in all the land of Egypt.” And Pharaoh called Joseph’s name Zaphenath-paneah. And he gave him in marriage Asenath, the daughter of Potiphera priest of On. So Joseph went out over the land of Egypt.
Joseph was thirty years old when he entered the service of Pharaoh king of Egypt. And Joseph went out from the presence of Pharaoh and went through all the land of Egypt. During the seven plentiful years the earth produced abundantly, and he gathered up all the food of these seven years, which occurred in the land of Egypt, and put the food in the cities. He put in every city the food from the fields around it. And Joseph stored up grain in great abundance, like the sand of the sea, until he ceased to measure it, for it could not be measured.
Before the year of famine came, two sons were born to Joseph. Asenath, the daughter of Potiphera priest of On, bore them to him. Joseph called the name of the firstborn Manasseh. “For,” he said, “God has made me forget all my hardship and all my father’s house.” The name of the second he called Ephraim, “For God has made me fruitful in the land of my affliction.”
The seven years of plenty that occurred in the land of Egypt came to an end, and the seven years of famine began to come, as Joseph had said. There was famine in all lands, but in all the land of Egypt there was bread. When all the land of Egypt was famished, the people cried to Pharaoh for bread. Pharaoh said to all the Egyptians, “Go to Joseph. What he says to you, do.”
So when the famine had spread over all the land, Joseph opened all the storehouses and sold to the Egyptians, for the famine was severe in the land of Egypt. Moreover, all the earth came to Egypt to Joseph to buy grain, because the famine was severe over all the earth.
ESV: English Standard Version 2016