Bulugh al-Maram 475
وَعَنْ جَابِرٍ قَالَ: شَهِدْتُ مَعَ رَسُولِ اللَّهِ - صلى الله عليه وسلم - صَلَاةَ الْخَوْفِ، فَصَفَّنَا صَفَّيْنِ: صَفٌّ خَلْفَ رَسُولِ اللَّهِ - صلى الله عليه وسلم - وَالْعَدُوُّ بَيْنَنَا وَبَيْنَ الْقِبْلَةِ, فَكَبَّرَ النَّبِيُّ - صلى الله عليه وسلم - وَكَبَّرْنَا جَمِيعًا, ثُمَّ رَكَعَ وَرَكَعْنَا جَمِيعًا, ثُمَّ رَفَعَ رَأْسَهُ مِنَ الرُّكُوعِ وَرَفَعْنَا جَمِيعًا, ثُمَّ انْحَدَرَ بِالسُّجُودِ وَالصَّفُّ الَّذِي يَلِيهِ, وَقَامَ الصَّفُّ الْمُؤَخَّرُ فِي نَحْرِ الْعَدُوِّ, فَلَمَّا قَضَى السُّجُودَ, قَامَ الصَّفُّ الَّذِي يَلِيهِ ... فَذَكَرَ الْحَدِيثَ. وَفِي رِوَايَةٍ: ثُمَّ سَجَدَ وَسَجَدَ مَعَهُ الصَّفُّ الْأَوَّلُ, فَلَمَّا قَامُوا سَجَدَ الصَّفُّ الثَّانِي, ثُمَّ تَأَخَّرَ الصَّفُّ الْأَوَّلِ وَتَقَدَّمَ الصَّفُّ الثَّانِي ... فَذَكَرَ مِثْلَهُ. وَفِي آخِرِهِ: ثُمَّ سَلَّمَ النَّبِيُّ - صلى الله عليه وسلم - وَسَلَّمْنَا جَمِيعًا. رَوَاهُ مُسْلِمٌ.
Jabir said: I attended the fear prayer with the Messenger of Allah ﷺ. He arranged us in two rows: a row behind the Messenger of Allah ﷺ, while the enemy was between us and the qiblah. The Prophet ﷺ said takbir and we all said takbir. Then he bowed and we all bowed. Then he raised his head from bowing and we all raised [our heads]. Then he went down in prostration along with the row next to him, while the rear row stood facing the enemy. When he had finished the prostration, the row next to him stood up... and he mentioned the hadith. And in a narration: Then he prostrated and the first row prostrated with him. When they stood up, the second row prostrated. Then the first row moved back and the second row moved forward... and he mentioned something similar. And at its end: Then the Prophet ﷺ gave salam and we all gave salam. Reported by Muslim.