Joseph collected all of the money that was in Egypt and Canaan. People paid it to him for the grain they were buying. And Joseph brought it to Pharaoh's palace.