Sunan an-Nasa'i, Volume 2, Book 18, Hadith 1548 (DarusSalam)

It was narrated that Jabir said: "We witnessed the fear prayer with the Messenger of Allah. We stood behind him in two rows, and the enemy was between us and the Qiblah. The Messenger of Allah said the takbir. He bowed and we bowed, and he stood up again and we stood up. When he went down in prostration, the Messenger of Allah and those who were closest to him prostrated, and the second row remained standing until the Messenger of Allah and the row closest to him stood up. Then the second row prostrated when the Messenger of Allah had stood up, where they were. Then the row that had been closest to the Prophet moved back and the second row moved forward, each standing in the place where the other had been. The Prophet bowed and we bowed, then he stood up and we stood up, and when he went down in prostration, those who were closest to him prostrated and the others remained standing. When the Messenger of Allah and those who were closest to him sat up, the others prostrated, then he said the taslim."

أَخْبَرَنَا عَلِيُّ بْنُ الْحُسَيْنِ الدِّرْهَمِيُّ، وَإِسْمَاعِيلُ بْنُ مَسْعُودٍ، قَالاَ حَدَّثَنَا خَالِدٌ، قَالَ حَدَّثَنَا عَبْدُ الْمَلِكِ بْنُ أَبِي سُلَيْمَانَ، عَنْ عَطَاءٍ، عَنْ جَابِرٍ، قَالَ شَهِدْنَا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم صَلاَةَ الْخَوْفِ فَقُمْنَا خَلْفَهُ صَفَّيْنِ وَالْعَدُوُّ بَيْنَنَا وَبَيْنَ الْقِبْلَةِ فَكَبَّرَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَكَبَّرْنَا وَرَكَعَ وَرَكَعْنَا وَرَفَعَ وَرَفَعْنَا فَلَمَّا انْحَدَرَ لِلسُّجُودِ سَجَدَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَالَّذِينَ يَلُونَهُ وَقَامَ الصَّفُّ الثَّانِي حِينَ رَفَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَالصَّفُّ الَّذِينَ يَلُونَهُ ثُمَّ سَجَدَ الصَّفُّ الثَّانِي حِينَ رَفَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم فِي أَمْكِنَتِهِمْ ثُمَّ تَأَخَّرَ الصَّفُّ الَّذِينَ كَانُوا يَلُونَ النَّبِيَّ صلى الله عليه وسلم وَتَقَدَّمَ الصَّفُّ الآخَرُ فَقَامَ فِي مَقَامِهِمْ وَقَامَ هَؤُلاَءِ فِي مَقَامِ الآخَرِينَ قِيَامًا وَرَكَعَ النَّبِيُّ صلى الله عليه وسلم وَرَكَعْنَا ثُمَّ رَفَعَ وَرَفَعْنَا فَلَمَّا انْحَدَرَ لِلسُّجُودِ سَجَدَ الَّذِينَ يَلُونَهُ وَالآخَرُونَ قِيَامٌ فَلَمَّا رَفَعَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَالَّذِينَ يَلُونَهُ سَجَدَ الآخَرُونَ ثُمَّ سَلَّمَ ‏.‏

sunnah.com