Abdullah bin Masud reported,

The Messenger of Allah ﷺ led us in the prayer of fear. One row stood behind the Messenger of Allah ﷺ while another row faced the enemy. The Messenger of Allah ﷺ led them in one rakah, then the other group came and took their place, and the first group went to face the enemy. The Prophet ﷺ led the second group in one rakah and then gave the salam. The second group then stood and completed one rakah on their own and gave the salam. They then went and took the position of the first group facing the enemy, while the first group returned to their place and prayed one rakah on their own, then gave the salam.

Abu Dawud 1244

Daif

حدثنا عمران بن ميسرة حدثنا ابن فضيل حدثنا خصيف عن أبي عبيدة

عن عبد الله بن مسعود قال

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

أبو داود 1244ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer while traveling
Chapter
Those who said he prays one rakat with each group then gives the salutation
Numbering
Darussalam 1244
Abu Dawud 1244