Sahih al-Bukhari, Hadith 7458 ⓘ
Narrated Abu Musa: A man came to the Prophet and said, "A man fights for pride and haughtiness another fights for bravery, and another fights for showing off; which of these (cases) is in Allah's Cause?" The Prophet said, "The one who fights that Allah's Word (Islam) should be superior, fights in Allah's Cause." (See Hadith No. 65, Vol. 4)
حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، حَدَّثَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنْ أَبِي مُوسَى، قَالَ جَاءَ رَجُلٌ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ الرَّجُلُ يُقَاتِلُ حَمِيَّةً وَيُقَاتِلُ شَجَاعَةً وَيُقَاتِلُ رِيَاءً، فَأَىُّ ذَلِكَ فِي سَبِيلِ اللَّهِ قَالَ " مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا، فَهْوَ فِي سَبِيلِ اللَّهِ " .
also referenced under: Book 97, Hadith 84 (In-Book) & Volume 9, Book 93, Hadith 550 (USC-MSA)