Jabir bin Abdullah reported,

I was present with the Messenger of Allah ﷺ for the prayer of fear. We formed two rows behind the Messenger of Allah ﷺ, with the enemy between us and the qiblah. The Prophet ﷺ said the takbir and we all said the takbir together. Then he bowed and we all bowed together. Then he raised his head from bowing and we all raised our heads together.Then he went down for prostration along with the row directly behind him, while the rear row remained standing facing the enemy. When the Prophet ﷺ completed the prostration and the row behind him stood up, the rear row went down for prostration, then stood up.Then the rear row moved forward and the front row moved back. The Prophet ﷺ then bowed and we all bowed together. Then he raised his head from bowing and we all raised our heads together. Then he went down for prostration along with the row directly behind him, which had been the rear row in the first rakah, while the rear row remained standing facing the enemy. When the Prophet ﷺ and the row behind him completed the prostration, the rear row went down for prostration and prostrated. Then the Prophet ﷺ gave the salam and we all gave the salam together.Jabir said, "Just as your guards here do with their commanders."

Muslim 1945

Sahih

حدثنا محمد بن عبد الله بن نمير حدثنا أبي حدثنا عبد الملك بن أبي سليمان عن عطاء

عن جابر بن عبد الله قال

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

مسلم 1945صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Prayer of fear
Numbering
Darussalam 1945
Muslim 1945