Genesis 41:46-49; 53-57
(41: 46-49) 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 plenteous years the earth brought forth abundantly, and he gathered up all the food of the seven years when there was plenty in the land of Egypt, and stored up food in the cities; he stored up 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.
(41: 53-57) The seven years of plenty that prevailed 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; and 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.