Sahih al-Bukhari, Book 56, Hadith 69 (Bukhari 2738)

Narrated Abu Huraira:

The Prophet (ﷺ) said, "If somebody keeps a horse in Allah's Cause motivated by his faith in Allah and his belief in His Promise, then he will be rewarded on the Day of Resurrection for what the horse has eaten or drunk and for its dung and urine."