Sahih Muslim 1904 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ أَعْلَى فَهُوَ فِي سَبِيلِ اللَّهِ "
It has been narrated on the authority of Abu Musa Ash'ari that a desert Arab came to the Prophet (ﷺ) and said:
Messenger of Allah, one man fights fgr the spoils of war; another fights that he may be remembered, and another fights that he may see his (high) position (achieved as a result of his valour in fighting). Which of these is fighting in the cause of God? The Messenger of Allah (ﷺ) said: Who fights so that the word of Allah is exalted is fighting in the way of Allah.
Full reference and source
Sahih Muslim 1904 a In-book : Book 33, Hadith 214 USC-MSA web (English) : Book 20, Hadith 4684 (deprecated)
View source on Sunnah.com (opens in a new tab)