It is disliked to wish to meet the enemy, and the command to be steadfast when meeting the enemy Sahih Muslim 1741

Arabic hadith text
حَدَّثَنَا الْحَسَنُ بْنُ عَلِيٍّ الْحُلْوَانِيُّ، وَعَبْدُ بْنُ حُمَيْدٍ، قَالاَ حَدَّثَنَا أَبُو عَامِرٍ الْعَقَدِيُّ، عَنِ الْمُغِيرَةِ، - وَهُوَ ابْنُ عَبْدِ الرَّحْمَنِ الْحِزَامِيُّ - عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي، هُرَيْرَةَ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏"‏لاَ تَمَنَّوْا لِقَاءَ الْعَدُوِّ فَإِذَا لَقِيتُمُوهُمْ فَاصْبِرُوا‏"‏ ‏.‏
Translation
It has been narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said

Do not desire an encounter with the enemy; but when you encounter them, be firm.