It has been narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) said: Do not desire an encounter with the enemy; but when you encounter them, be firm.
Hadith ReferenceSahih Muslim / The Book of Jihad and Expeditions / Hadith: 1741