Abu Hurairah reported,

The Messenger of Allah ﷺ was encamped between Dajnan and Usfan, besieging the polytheists. The polytheists said, "These people have a prayer that is dearer to them than their children and their virgin daughters. Make up your minds, then fall upon them all at once."Then Jibreel عليه السلام came and commanded him to divide his companions into two groups. He would pray with one group while the other group faced the enemy, taking their precautions and bearing their weapons. He would pray one rakah with them, then this group would withdraw and the other would advance, and he would pray one rakah with them. So each group would have one rakah with the Prophet ﷺ, while the Prophet ﷺ would have two rakahs.

Nasai 1545

Sahih

أخبرنا العباس بن عبد العظيم قال حدثني عبد الصمد بن عبد الوارث قال حدثني سعيد بن عبيد الهنائي قال حدثنا عبد الله بن شقيق قال حدثنا

أبو هريرة قال

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

النسائي 1545صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Prayer of fear
Chapter
Prayer of fear
Numbering
Darussalam 1545
Nasai 1545