(42) باب مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا فَهُوَ فِي سَبِيلِ اللَّهِ
It has been narrated (through another chain of transmitters) on the authority of Abu Musa who said. The Messenger of Allah (ﷺ) was asked which of the men fights in the way of Allah:
(one who fights) for displaying his valour; (a man who) fights out of his family pride and (a man who) fights for the sake of show, who amongst these fights in the way of Allah? The Messenger of Allah (ﷺ) said: Who fights that the word of Allah be exalted fights in the way of Allah.
Reference: Sahih Muslim 1904 b
In-book reference: Book 33, Hadith 215
USC-MSA web (English) reference(deprecated numbering scheme): Book 20, Hadith 4685