Hadith 1354

نَا أَبُو مُوسَى مُحَمَّدُ بْنُ الْمُثَنَّى ، حَدَّثَنَا عَبْدُ الأَعْلَى ، حَدَّثَنَا مَعْمَرٌ ، عَنِ الزُّهْرِيِّ ، عَنْ سَالِمٍ ، عَنِ ابْنِ عُمَرَ ، أَنَّ نَبِيَّ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ " صَلَّى بِهِمْ صَلاةَ الْخَوْفِ ، فَصَلَّى بِطَائِفَةٍ خَلْفَهُ رَكْعَةً ، وَطَائِفَةٌ مُوَاجِهَةٌ الْعَدُوَّ ، ثُمَّ قَامَتِ الطَّائِفَةُ الَّذِينَ صَلَّوْا فَوَاجَهُوا الْعَدُوَّ ، وَجَاءَ الآخَرُونَ فَصَلَّى بِهِمُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَكْعَةً ، ثُمَّ سَلَّمَ ، ثُمَّ صَلَّى هَؤُلاءِ رَكْعَةً وَهَؤُلاءِ رَكْعَةً "
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) led them in the prayer of fear (Salat al-Khawf). He led one group, who were standing behind him, in one rak'ah, while another group was standing facing the enemy. Then the group who had prayed got up and stood facing the enemy, and the other group came forward. The Noble Prophet (peace and blessings be upon him) led them in one rak'ah as well, then he said the salam. After that, both groups completed their prayer by praying one rak'ah each.
Hadith Reference صحيح ابن خزيمه / جماع أبواب صلاة الخوف / 1354
Hadith Takhrij صحيح بخاري