Abu Musa Ashari reported,

An Arabi came to the Messenger of Allah ﷺ and said, "A man fights for renown, another fights to be praised, another fights for spoils, and another fights to show off his position. Which of them 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." عز وجل

Abu Dawud 2517

Sahih

حدثنا حفص بن عمر حدثنا شعبة عن عمرو بن مرة عن أبي وائل

عن أبي موسى

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

أبو داود 2517صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Jihad
Chapter
Whoever fights so that the word of Allah may be supreme
Numbering
Darussalam 2517
Abu Dawud 2517