Abdullah bin Umar reported,

The Messenger of Allah ﷺ led the prayer of fear on one of his days. One group stood with him while another faced the enemy. He prayed one rakah with those who were with him, then they left and the others came, and he prayed one rakah with them. Then each of the two groups completed the remaining rakah on their own.

Nasai 1543

Sahih

أخبرنا عبد الأعلى بن واصل بن عبد الأعلى قال حدثنا يحيى بن آدم عن سفيان عن موسى بن عقبة عن نافع

عن ابن عمر قال

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

النسائي 1543صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Prayer of fear
Chapter
Prayer of fear
Numbering
Darussalam 1543
Nasai 1543