The Messenger of Allah ﷺ said, "Do not wish to meet the enemy, for you do not know what may come of it."
حدثنا إسحاق بن إبراهيم الرازي ختن سلمة الأبرش قال حدثنا سلمة بن الفضل قال حدثني محمد بن إسحاق عن عمه موسى بن يسار
قال رسول الله ﷺ لا تمنوا لقاء العدو فإنكم لا تدرون ما يكون في ذلك
No references are available.
Its chain of transmission is sahih. Ishaq bin Ibrahim Razi is reliable, though he has been criticized, but this does not affect his integrity or his precision. The hadith is found in Bukhari 4/62, 77, Muslim in jihad number 20, and the rest of the imams.