Abu Ayyash reported,

We were with the Messenger of Allah ﷺ at Usfan when the polytheists, led by Khalid bin Walid, came to face us. They were positioned between us and the qiblah. The Prophet ﷺ led us in the noon prayer.The polytheists said, "They were in a state where, had we attacked them by surprise, we could have struck them down." Then they said, "A prayer is about to come upon them that is dearer to them than their children and their own selves."Then Jibril عليه السلام came down with these verses between the noon and afternoon prayers, "When you are among them and lead them in prayer..." [Nisa 4:102].When the time for the prayer came, the Messenger of Allah ﷺ ordered them to take up their weapons. We formed two rows behind him. He bowed, and we all bowed with him. He rose, and we all rose with him. Then the Prophet ﷺ prostrated along with the row directly behind him, while the other row remained standing, guarding them. When the first row had prostrated and stood up, the other row sat and prostrated in their place. Then the first row moved forward to take the position of the second, and the second row moved up to take the position of the first.Then he bowed, and they all bowed with him. He rose, and they all rose with him. Then the Prophet ﷺ prostrated along with the row directly behind him, while the other row remained standing, guarding them. When he sat, the other row also sat and prostrated. Then he gave the salam to them and concluded the prayer.The Messenger of Allah ﷺ performed this prayer twice, once at Usfan and once in the land of Banu Sulaym.

Azami 12212

Sahih

عن أبي عياش الزرقي قال

كنا مع رسول الله ﷺ بعسفان، فاستقبلنا المشركون، عليهم خالد بن الوليد، وهم بيننا وبين القبلة، فصلى بنا النبي ﷺ الظهر. فقالوا: قد كانوا على حال لو أصبنا غرتهم. ثم قالوا: تأتي عليهم الآن صلاة هي أحب إليهم من أبنائهم وأنفسهم. قال: فنزل جبرئيل عليه السلام بهذه الآيات بين الظهر والعصر: {وإذا كنت فيهم فأقمت لهم الصلوة}. قال: فحضرت، فأمرهم رسول الله ﷺ فأخذوا السلاح. قال: فصففنا خلفه صفين. قال: ثم ركع، فركعنا جميعا، ثم رفع فرفعنا جميعا، ثم سجد النبي ﷺ بالصف الذي يليه، والآخرون قيام يحرسونهم، فلما سجدوا وقاموا، جلس الآخرون، فسجدوا في مكانهم، ثم تقدم هؤلاء إلى مصاف هؤلاء، وجاء هؤلاء إلى مصاف هؤلاء، ثم ركع فركعوا جميعا، ثم سجد النبي ﷺ و الصف الذي يليه، والآخرون قيام يحرسونهم فلما جلس جلس الآخرون، فسجدوا، ثم سلم عليهم، ثم انصرف، قال: فصلاها رسول الله ﷺ: مرتين مرة بعسفان، ومرة بأرض بني سليم.

الأعظمي 12212صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And when you are among them and lead them in prayer, let a group of them stand with you and let them take their arms. And when they have prostrated, let them be behind you and let another group come forward who have not yet prayed, and let them pray with you, taking their precaution and their arms. Those who disbelieve wish that you would neglect your arms and your baggage so they could come down upon you in one assault. But there is no blame upon you if you are troubled by rain or are ill for putting down your arms, but take precaution. Indeed, Allah has prepared for the disbelievers a humiliating punishment."
Numbering
Jami al-Kamil 12212 (2nd edition)
Azami 12212