Abu Musa Ashari reported,

The Messenger of Allah ﷺ was asked about a man who fights out of bravery, a man who fights out of tribal loyalty, and a man who fights to be seen. Which of these is in the path of Allah?The Messenger of Allah ﷺ replied, "Whoever fights so that the word of Allah may be supreme is in the path of Allah."

Muslim 4920

Sahih

حدثنا أبو بكر بن أبي شيبة وابن نمير وإسحق بن إبراهيم ومحمد بن العلاء قال إسحق أخبرنا و قال الآخرون حدثنا أبو معاوية عن الأعمش عن شقيق

عن أبي موسى قال

سئل رسول الله ﷺ عن الرجل يقاتل شجاعة ويقاتل حمية ويقاتل رياء أي ذلك في سبيل الله فقال رسول الله ﷺ من قاتل لتكون كلمة الله هي العليا فهو في سبيل الله

مسلم 4920صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Whoever fights so that the word of Allah is supreme is in the cause of Allah
Numbering
Darussalam 4920
Muslim 4920