A man came to the Prophet (ﷺ) and asked, "A man fights for war booty; another fights for fame and a
third fights for showing off; which of them fights in Allah's Cause?" The Prophet (ﷺ) said, "He who fights
that Allah's Word (i.e. Islam) should be superior, fights in Allah's Cause."
Sahih al-Bukhari Book 56, Hadith 26