Abu Hurairah reported,

A man came to the Prophet ﷺ and said, "Messenger of Allah, teach me a deed that equals jihad."He replied, "I cannot find one."Then he said, "Can you, when the warrior goes out to fight, enter a mosque and stand in prayer without pause, and fast without breaking your fast?"The man said, "I am not able to do that."Abu Hurairah said, "Even the warrior's horse, prancing about on its tether, earns him good deeds."

Ahmad 8540

Sahih

حدثنا عفان حدثنا همام حدثنا محمد بن جحادة أن أبا حصين حدثه أن ذكوان حدثه أن

أبا هريرة حدثه قال

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

أحمد 8540صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 8540
Ahmad 8540