Sunnah.com : Book 12, Hadith 40
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وعن عبد الله بن أبي أوفى رضي الله عنهما أن رسول الله صلى الله عليه وسلم في بعض أيامه التي لقي فيها العدو انتظر حتى مالت الشمس، ثم قام في الناس فقال: أيها الناس، لا تتمنوا لقاء العدو، وسلو الله العافية، فإذا لقيتموه فاصبروا، واعلموا أن الجنة تحت ظلال السيوف" ثم قال: "اللهم منزل الكتاب ومجري السحاب، وهازم الأحزاب اهزمهم وانصرنا عليهم" ((متفق عليه))"
Abdullah bin Abu Aufa (May Allah be pleased with them) reported:
On one occasion the Messenger of Allah (ﷺ) was confronting the enemy. He waited until the sun had declined. Then he stood up to address the people and said, "O people! Do not wish for an encounter with the enemy. Pray to Allah to grant you safety; (but) when you encounter them, show patience, and know that Jannah is under the shades of the swords." Then he (ﷺ) said: "Allahumma munzilal-kitab, wa mujriyas- sahab, wa hazimal-Ahzab, ihzimhum wansurna alaihim (O Allah, Revealer of the Book, Disperser of the clouds, Defeater of the Confederates, put our enemy to rout and support us against them)." [Al- Bukhari and Muslim].
Full reference and source
Sunnah.com : Book 12, Hadith 40 Arabic/English book : Book 12, Hadith 1324
View source on Sunnah.com (opens in a new tab)