Abu Umama Bahili reported,

A man came to the Prophet ﷺ and asked, "What do you say about a man who fights in battle seeking both reward and renown? What will he get?"The Messenger of Allah ﷺ replied, "He will get nothing."The man repeated the question three times, and each time the Messenger of Allah ﷺ told him, "He will get nothing."Then he said, "Allah accepts no deed except what is done sincerely for Him and seeking His face."

Azami 7803

Hasan

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

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

الأعظمي 7803حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Discouragement from fighting for the sake of showing off and seeking reputation
Numbering
Jami al-Kamil 7803 (2nd edition)
Azami 7803