Genesis 42:6

6Now Joseph was governor aover the land. He was the one who sold to all the people of the land. And Joseph’s brothers came and bbowed themselves before him with their faces to the ground.

Genesis 47:14-24

14 cAnd Joseph gathered up all the money that was found in the land of Egypt and in the land of Canaan, in exchange for the grain that they bought. And Joseph brought the money into Pharaoh’s house. 15And when the money was all spent in the land of Egypt and in the land of Canaan, all the Egyptians came to Joseph and said, “Give us food. dWhy should we die before your eyes? For our money is gone.” 16And Joseph answered, “Give your livestock, and I will give you food in exchange for your livestock, if your money is gone.” 17So they brought their livestock to Joseph, and Joseph gave them food in exchange for the horses, the flocks, the herds, and the donkeys. He supplied them with food in exchange for all their livestock that year. 18And when that year was ended, they came to him the following year and said to him, “We will not hide from my lord that our money is all spent. The herds of livestock are my lord’s. There is nothing left in the sight of my lord but our bodies and our land. 19Why should we die before your eyes, both we and our land? eBuy us and our land for food, and we with our land will be servants to Pharaoh. And give us seed that we may live and not die, and that the land may not be desolate.”

20So Joseph bought all the land of Egypt for Pharaoh, for all the Egyptians sold their fields, because the famine was severe on them. The land became Pharaoh’s. 21As for the people, he made servants of them
Samaritan, Septuagint, Vulgate; Hebrew  he removed them to the cities
from one end of Egypt to the other.
22 gOnly the land of the priests he did not buy, for the priests had a fixed allowance from Pharaoh and lived on the allowance that Pharaoh gave them; therefore they did not sell their land.

23Then Joseph said to the people, “Behold, I have this day bought you and your land for Pharaoh. Now here is seed for you, and you shall sow the land. 24And at the harvests you shall give a hfifth to Pharaoh, and four fifths shall be your own, as seed for the field and as food for yourselves and your households, and as food for your little ones.”
Copyright information for ESV