Hadith 4636
Sayyiduna Abu Musa Ash'ari (may Allah be pleased with him) narrates: A man came to the service of the Prophet Muhammad (peace be upon him) and said: One person fights out of zeal, another fights to show bravery, and another fights for display—so which of these is considered to be in the way of Allah? The Prophet Muhammad (peace be upon him) said: Whoever participates in jihad so that Allah’s religion may be exalted, he is considered to be in the way of Allah.