Language:
كتاب العلم
3
Knowledge
(45)
Chapter: Whosoever, while standing, asked a religious learned man who was sitting (on a pulpit or a similar thing, about something)
(45)
باب مَنْ سَأَلَ وَهْوَ قَائِمٌ عَالِمًا جَالِسًا

Narrated Abu Musa:

A man came to the Prophet (ﷺ) and asked, "O Allah's Messenger (ﷺ)! What kind of fighting is in Allah's cause? (I ask this), for some of us fight because of being enraged and angry and some for the sake of his pride and haughtiness." The Prophet (ﷺ) raised his head (as the questioner was standing) and said, "He who fights so that Allah's Word (Islam) should be superior, then he fights in Allah's cause."

حَدَّثَنَا عُثْمَانُ، قَالَ أَخْبَرَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ أَبِي وَائِلٍ، عَنْ أَبِي مُوسَى، قَالَ جَاءَ رَجُلٌ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ، مَا الْقِتَالُ فِي سَبِيلِ اللَّهِ فَإِنَّ أَحَدَنَا يُقَاتِلُ غَضَبًا، وَيُقَاتِلُ حَمِيَّةً‏.‏ فَرَفَعَ إِلَيْهِ رَأْسَهُ ـ قَالَ وَمَا رَفَعَ إِلَيْهِ رَأْسَهُ إِلاَّ أَنَّهُ كَانَ قَائِمًا ـ فَقَالَ ‏ "‏ مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا فَهُوَ فِي سَبِيلِ اللَّهِ عَزَّ وَجَلَّ ‏"‏‏.‏
Reference : Sahih al-Bukhari 123
In-book reference : Book 3, Hadith 65
USC-MSA web (English) reference : Vol. 1, Book 3, Hadith 125
  (deprecated numbering scheme)