Abu Ayyash reported,

We were with the Messenger of Allah ﷺ at Usfan, and Khalid bin Walid was leading the polytheists. We prayed Dhuhr, and the polytheists said, "We missed an opportunity, we caught them off guard. If only we had attacked them while they were praying."So the verse on shortening the prayer was revealed between Dhuhr and Asr. When the time for Asr came, the Messenger of Allah ﷺ stood facing the qiblah with the polytheists in front of him. One row formed behind the Messenger of Allah ﷺ, and behind that row another row formed.The Messenger of Allah ﷺ bowed and they all bowed with him. Then he prostrated, and the row directly behind him prostrated while the others remained standing to guard them. When the first group had completed their two prostrations and stood up, the others behind them prostrated.Then the row directly behind him moved back to the position of the rear row, and the rear row moved forward to the position of the first row. The Messenger of Allah ﷺ then bowed and they all bowed with him. Then he prostrated, and the row directly behind him prostrated while the others stood guarding them. When the Messenger of Allah ﷺ sat, along with the row directly behind him, the others prostrated. Then they all sat together, and he gave the salam to them all.He prayed it this way at Usfan, and he prayed it this way on the day of Banu Sulaym.

Azami 2906

Sahih

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

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

الأعظمي 2906صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Prayer of fear
Section
Imam praying one rakat with each group, then waiting until each group completes their own prayer, then giving the salam with everyone
Numbering
Jami al-Kamil 2906 (2nd edition)
Azami 2906