Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Goodness is tied to the forelocks of horses until the Day of Resurrection. Horses are of three kinds. For one man they are a reward, for another a covering, and for another a burden.As for the one for whom they are a reward, he is the man who keeps them for the sake of Allah and prepares them for that purpose. Nothing enters their bellies but Allah writes for him a reward."The hadith contains a longer story.

Tirmidhi 1636

Sahih

حدثنا قتيبة حدثنا عبد العزيز بن محمد عن سهيل بن أبي صالح عن أبيه

عن أبي هريرة قال

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

الترمذي 1636صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Virtues of jihad
Chapter
Virtue of one who keeps a horse for the cause of Allah
Numbering
Darussalam 1636
Tirmidhi 1636