Genesis 47:17
And they brought their cattle unto Joseph: and Joseph gave them bread in exchange for horses, and for the flocks, and for the cattle of the herds, and for the asses: and he fed them with bread for all their cattle for that year.
Cross-reference
Isaiah 31:1
Contrast
Isaiah 31:1 warns against relying on Egyptian horses for military aid — contrasting with Joseph's practical trade for food here.