Jabir bin Abdullah reported,

The Messenger of Allah ﷺ led them in the prayer of fear. One row stood in front of him and another row stood behind him. He prayed one rakah with two prostrations with those behind him, then this group moved forward until they stood in the place of their companions, and the others came forward until they stood in the place of this group. The Messenger of Allah ﷺ then prayed one rakah with two prostrations with them and gave the closing salutation. So the Prophet ﷺ performed two rakahs, while each group performed only one.

Ahmad 14180

Sahih

حدثنا محمد بن جعفر حدثنا شعبة عن الحكم عن يزيد الفقير

عن جابر بن عبد الله

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

أحمد 14180صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Jabir bin Abdullah
Numbering
Darussalam 14180
Ahmad 14180