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.
حدثنا عمران بن ميسرة حدثنا ابن فضيل حدثنا خصيف عن أبي عبيدة
صلى بنا رسول الله ﷺ صلاة الخوف فقاموا صفا خلف رسول الله ﷺ وصف مستقبل العدو فصلى بهم رسول الله ﷺ ركعة ثم جاء الآخرون فقاموا مقامهم واستقبل هؤلاء العدو فصلى بهم النبي ﷺ ركعة ثم سلم فقام هؤلاء فصلوا لأنفسهم ركعة ثم سلموا ثم ذهبوا فقاموا مقام أولئك مستقبلي العدو ورجع أولئك إلى مقامهم فصلوا لأنفسهم ركعة ثم سلموا
[Its chain is daif] Ahmad recorded it (1/375) from Muhammad bin Fudayl bin Ghazwan, through this route. Khaseef is daif, as mentioned previously, no. 1028, and Abu Ubayda from his father is a broken chain (munqati), as mentioned previously, no. 995.