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."
جَاءَ رَجُلٌ إِلَى النَّبِيِّ ﷺ فَقَالَ الرَّجُلُ يُقَاتِلُ لِلْمَغْنَمِ وَالرَّجُلُ يُقَاتِلُ لِلذِّكْرِ وَالرَّجُلُ يُقَاتِلُ لِيُرَى مَكَانُهُ فَمَنْ فِي سَبِيلِ اللَّهِ قَالَ مَنْ قَاتَلَ لِتَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا فَهُوَ فِي سَبِيلِ اللَّهِ