Sahih Muslim 1904 d
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 through a different chain of transmitters on the same authority, i. e. Abu Musa Ash'ari, that a man asked the Messenger of Allah (ﷺ) about fighting in the way of Allah, the Exalted and Majestic, a man who fights out of rage or out of family pride. He raised his head towards him-and he did so because the man was standing and said:
Who fights that the word of Allah be exalted fights in the way of Allah.
Full reference and source
Sahih Muslim 1904 d In-book : Book 33, Hadith 217 USC-MSA web (English) : Book 20, Hadith 4687 (deprecated)
View source on Sunnah.com (opens in a new tab)