كتاب الصلاة
2  
The Book of Prayer
Narrated Jabir (RA):
"I witnessed Salat-al-Khauf with Allah's Messenger (ﷺ) and we lined up in two rows behind him with the enemy between us and the Qiblah. The Prophet (ﷺ) uttered the Takbir and we all uttered it; then he bowed and we all bowed; then he raised his head after bowing and we all raised ours; then he and the row immediately behind him went down in prostration while the rear row stood facing the enemy. Then, when Allah's Messenger (ﷺ) finished the prostration and the row immediately behind him stood up..." then he mentioned the Hadith.

And in a narration "Then he prostrated and the first row prostrated with him. So when they stood, the second row prostrated then the first row went back and the second row came forward..." then he mentioned a similar to it.

And at the end of it "Then the Prophet (ﷺ) uttered the Taslim (salutation) and we all did so." [Reported by Muslim].
وَعَنْ جَابِرٍ قَالَ: { شَهِدْتُ مَعَ رَسُولِ اَللَّهِ ‏- صلى الله عليه وسلم ‏-صَلَاةَ اَلْخَوْفِ، فَصَفَّنَا صَفَّيْنِ: صَفٌّ خَلْفَ رَسُولِ اَللَّهِ ‏- صلى الله عليه وسلم ‏-وَالْعَدُوُّ بَيْنَنَا وَبَيْنَ اَلْقِبْلَةِ, فَكَبَّرَ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-وَكَبَّرْنَا جَمِيعًا, ثُمَّ رَكَعَ وَرَكَعْنَا جَمِيعًا, ثُمَّ رَفَعَ رَأْسَهُ مِنَ اَلرُّكُوعِ وَرَفَعْنَا جَمِيعًا, ثُمَّ اِنْحَدَرَ بِالسُّجُودِ وَالصَّفُّ اَلَّذِي يَلِيهِ, وَقَامَ اَلصَّفُّ اَلْمُؤَخَّرُ فِي نَحْرِ اَلْعَدُوِّ, فَلَمَّا قَضَى اَلسُّجُودَ, قَامَ اَلصَّفُّ اَلَّذِي يَلِيهِ.‏.‏.‏ } فَذَكَرَ اَلْحَدِيثَ.‏
وَفِي رِوَايَةٍ: { ثُمَّ سَجَدَ وَسَجَدَ مَعَهُ اَلصَّفُّ اَلْأَوَّلُ, فَلَمَّا قَامُوا سَجَدَ اَلصَّفُّ اَلثَّانِي, ثُمَّ تَأَخَّرَ اَلصَّفُّ اَلْأَوَّلِ وَتَقَدَّمَ اَلصَّفُّ اَلثَّانِي.‏.‏.‏ } فَذَكَرَ مِثْلَهُ.‏
وَفِي آخِرِهِ: { ثُمَّ سَلَّمَ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-وَسَلَّمْنَا جَمِيعًا } رَوَاهُ مُسْلِمٌ 1‏ .‏


‏1 ‏- مسلم (1/574‏-575/840)‏.‏

Sunnah.com reference : Book 2, Hadith 402
English translation : Book 2, Hadith 475
Arabic reference : Book 2, Hadith 477