Genesis 47:20-22

47:20 So Joseph bought all the land of Egypt for Pharaoh. Each of the Egyptians sold his field, for the famine was severe. So the land became Pharaoh’s. 47:21 Joseph made all the people slaves from one end of Egypt’s border to the other end of it. 47:22 But he did not purchase the land of the priests because the priests had an allotment from Pharaoh and they ate from their allotment that Pharaoh gave them. That is why they did not sell their land.