Genesis 47:21

And as for the people, he moved them into the cities, from one end of the borders of Egypt to the other end.

Surrounding context

47:20 Then Joseph bought all the land of Egypt for Pharaoh; for every man of the Egyptians sold his field, because the famine was severe upon them. So the land became Pharaoh's.

47:21 And as for the people, he moved them into the cities, from one end of the borders of Egypt to the other end.

47:22 Only the land of the priests he did not buy; for the priests had rations allotted to them by Pharaoh, and they ate their rations which Pharaoh gave them; therefore they did not sell their lands.

Translation and sources