Sahl bin Abu Hathma reported,

The Messenger of Allah ﷺ led his companions in the prayer of fear. He arranged them behind him in two rows and prayed one rakah with those nearest him, then he remained standing until the row behind them had also prayed one rakah. Then those in the rear moved forward and those who had been in front moved back, and he prayed one rakah with them. He then sat until the group that had fallen behind completed their remaining rakah, and he gave the closing salutation.

Muslim 1947

Sahih

حدثنا عبيد الله بن معاذ العنبري حدثنا أبي حدثنا شعبة عن عبد الرحمن بن القاسم عن أبيه عن صالح بن خوات بن جبير

عن سهل بن أبي حثمة

أن رسول الله ﷺ صلى بأصحابه في الخوف فصفهم خلفه صفين فصلى بالذين يلونه ركعة ثم قام فلم يزل قائما حتى صلى الذين خلفهم ركعة ثم تقدموا وتأخر الذين كانوا قدامهم فصلى بهم ركعة ثم قعد حتى صلى الذين تخلفوا ركعة ثم سلم

مسلم 1947صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Prayer of fear
Numbering
Darussalam 1947
Muslim 1947