Abu Bakra reported,

It is reported from the Prophet ﷺ that he led the prayer of fear, performing two rakahs with the group behind him and another two rakahs with the group that came afterward. So the Prophet ﷺ prayed four rakahs in total, while each of the two groups prayed only two rakahs.

Nasai 1556

Sahih

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

عن أبي بكرة

عن النبي ﷺ أنه صلى صلاة الخوف بالذين خلفه ركعتين والذين جاءوا بعد ركعتين فكانت للنبي ﷺ أربع ركعات ولهؤلاء ركعتين ركعتين

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