Sahl bin Abu Hathma reported,

The prayer of fear is performed as follows. The imam stands with one group of his companions while another group faces the enemy. The imam performs one cycle of prayer, bowing and prostrating with those who are with him, then he stands up. Once he is fully upright, he remains standing while they complete the remaining cycle on their own, then they give the closing salutation and depart, while the imam continues standing. They then take up position facing the enemy.The other group, who had not yet prayed, then come forward and say the opening takbir behind the imam. He bows and prostrates with them, then gives the closing salutation. They stand up and perform the remaining cycle on their own, then give the closing salutation.

Abu Dawud 1239

Sahih

حدثنا القعنبي عن مالك عن يحيى بن سعيد عن القاسم بن محمد عن صالح بن خوات الأنصاري

أن سهل بن أبي حثمة الأنصاري حدثه

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

أبو داود 1239صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer while traveling
Chapter
Those who said that if he prays one rakat and remains standing, they complete one rakat for themselves then give the salam then move away and face the enemy, and the difference of opinion regarding the salam
Numbering
Darussalam 1239
Abu Dawud 1239