A man reported,

The Prophet ﷺ said, "Horses are of three kinds. A horse that a man tethers in the path of Allah عز وجل, its price is a reward, riding it is a reward, lending it is a reward, and feeding it is a reward. A horse upon which a man competes and gambles, its price is a sin. And a horse kept for breeding, perhaps it will be a safeguard against poverty, if Allah the Exalted wills."

Azami 7958

Sahih

عن رجل من الأنصار

عن النبي ﷺ قال: الخيل ثلاثة: فرس يربطه الرجل في سبيل الله عز وجل، فثمنه أجره، وركوبه أجره، وعاريته أجره، وعلفه أجره، وفرس يغالق عليه الرجل، ويراهن، فثمنه وزر، وفرس للبطنة، فعسى أن يكون سدادا من الفقر إن شاء الله تعالى.

الأعظمي 7958صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Horses, archery, and racing
Section
Virtue of horses in jihad
Numbering
Jami al-Kamil 7958 (2nd edition)
Azami 7958