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. He prayed one rakah with those nearest to him, then stood and remained standing until those behind them had prayed one rakah. Then they moved forward and those who had been in front moved back, and he prayed one rakah with them. He then sat until those who had stayed behind had prayed one rakah, after which he gave the closing salam.

Azami 9097

Sahih

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

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

الأعظمي 9097صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expeditions that occurred after the conquest of Khaybar and before Amra al-Qadiyyah
Section
Salat al-Khawf during the expedition of Dhat al-Riqa
Numbering
Jami al-Kamil 9097 (2nd edition)
Azami 9097