عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ رَضِيَ اللَّهُ عَنْهُمَا أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ صَلَّى بِهِمْ صَلَاةَ الْخَوْفِ فَقَامَ صَفٌّ بَيْنَ يَدَيْهِ وَصَفٌّ خَلْفَهُ، فَصَلَّى بِالَّذِي خَلْفَهُ رَكْعَةً وَسَجْدَتَيْنِ، ثُمَّ تَقَدَّمَ هَؤُلَاءِ حَتَّى قَامُوا فِي مَقَامِ أَصْحَابِهِمْ وَجَاءَ أُولَئِكَ حَتَّى قَامُوا مَقَامَ هَؤُلَاءِ، فَصَلَّى بِهِمْ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ رَكْعَةً وَسَجْدَتَيْنِ ثُمَّ سَلَّمَ فَكَانَتْ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ رَكْعَتَانِ وَلَهُمْ رَكْعَةٌ
It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) led them in the prayer of fear. (Its manner was that) one row stood in front of the Messenger of Allah (peace and blessings be upon him) and one behind him. Then the Messenger of Allah (peace and blessings be upon him) led those behind him in one rak‘ah including two prostrations. Then they moved forward and stood in the place of the other group, and the others came and stood (behind the Messenger of Allah, peace and blessings be upon him) in their place. The Messenger of Allah (peace and blessings be upon him) led them in one rak‘ah including two prostrations and then gave salam. Thus, the Messenger of Allah (peace and blessings be upon him) performed two rak‘ahs and each of them performed one.