We were with the Messenger of Allah ﷺ when the prayer was called. The Messenger of Allah ﷺ stood up, and one group stood behind him while another group faced the enemy. He led those behind him in one rakah, performing two prostrations with them. Then they departed and took the position of those who had been facing the enemy, and that other group came forward. The Messenger of Allah ﷺ led them in one rakah and performed two prostrations with them. Then the Messenger of Allah ﷺ gave the salutation, and those behind him gave the salutation, and the others gave the salutation as well.
أخبرنا أحمد بن المقدام قال حدثنا يزيد بن زريع قال حدثنا عبد الرحمن بن عبد الله المسعودي قال أنبأني يزيد الفقير أنه سمع
كنا مع رسول الله ﷺ فأقيمت الصلاة فقام رسول الله ﷺ وقامت خلفه طائفة وطائفة مواجهة العدو فصلى بالذين خلفه ركعة وسجد بهم سجدتين ثم إنهم انطلقوا فقاموا مقام أولئك الذين كانوا في وجه العدو وجاءت تلك الطائفة فصلى بهم رسول الله ﷺ ركعة وسجد بهم سجدتين ثم إن رسول الله ﷺ سلم فسلم الذين خلفه وسلم أولئك
No references are available.
[Its isnad is sahih] Ibn Khuzayma narrated it, no. 1364, from Ahmad bin Miqdam through this same chain, and it is in al-Kubra, no. 1934, see the previous hadith, and this is a portion of it. Yazid bin Zuray's hearing from Masudi was before the latter's confusion set in, as stated in al-Kawakib al-Nayyirat, p. 057.