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.”
Source: HOTD