Genesis 47:14

14 Joseph collected all the money that was to be found in Egypt and Canaan. People paid for the grain they were buying, and he brought that money to the king's palace.