Salim Abu Nadr reported,

He then stood before the people and delivered a sermon. He said, "People, do not wish for an encounter with the enemy, and ask Allah for safety. But when you do meet them, stand firm, and know that Paradise lies beneath the shade of the swords."Then he said, "Allah, Revealer of the Book, Driver of the clouds, Vanquisher of the confederates, rout them and grant us victory over them."

Bukhari 2966

Sahih

ثم قام في الناس خطيبا قال أيها الناس لا تتمنوا لقاء العدو وسلوا الله العافية فإذا لقيتموهم فاصبروا واعلموا أن الجنة تحت ظلال السيوف ثم قال اللهم منزل الكتاب ومجري السحاب وهازم الأحزاب اهزمهم وانصرنا عليهم

البخاري 2966صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Prophet ﷺ would delay fighting until the sun had passed its zenith if he did not fight at the beginning of the day
Numbering
Darussalam 2966
Bukhari 2966