Abdullah bin Umar reported,

He said, the Messenger of Allah ﷺ led the prayer of fear with one of the two groups, performing one rakah, while the other group faced the enemy. Then that group withdrew and took the position of their companions, facing the enemy, and the others came forward, and the Prophet ﷺ led them in one rakah, then gave the salam. After that, this group completed one rakah and that group completed one rakah.

Ahmad 6351

Sahih

حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن سالم

عن ابن عمر

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

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