Genesis 47:15-17 Common English Bible (CEB)

15. The silver from the land of Egypt and from the land of Canaan had been spent, and all of the Egyptians came to Joseph and said, "Give us food. Why should we die before your eyes, just because the silver is gone?"

16. Joseph said, "Give me your livestock, and I will give you food for your livestock if the silver is gone."

17. So they brought their livestock to Joseph, and Joseph gave them food for the horses, flocks, cattle, and donkeys. He got them through that year with food in exchange for all of their livestock.

Genesis 47