Genesis 47:13-14
47:13 But there was no food in all the land because the famine was very severe; the land of Egypt and the land of Canaan wasted away because of the famine.
47:14 Joseph collected all the money that could be found in the land of Egypt and in the land of Canaan as payment for the grain they were buying. Then Joseph brought the money into Pharaoh’s palace.