Sahih al-Bukhari 123
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا فَهُوَ فِي سَبِيلِ اللَّهِ عَزَّ وَجَلَّ "
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."
Full reference and source
Sahih al-Bukhari 123 In-book : Book 3, Hadith 65 USC-MSA web (English) : Vol. 1, Book 3, Hadith 125 (deprecated)
View source on Sunnah.com (opens in a new tab)