"عَنْ سَعِيد بْنِ الْعَاصِ أَنَّهُ قَالَ فِى غَزْوَةٍ وَمَعَهُ حُذَيْفَةُ: أَيُّكُمْ شَهِدَ مَعَ رَسُولِ الله ﷺ صَلَاةَ الْخَوْفِ؟ فَقَالَ حُذَيْفَةُ: أَنَا، فَأَمَرهُمْ حُذَيْفَةُ فَلَبَسُوا السِّلَاحَ ثُمَّ قَالَ: إِنْ هَاجَكُمْ يصح (*) فَقَدْ حَلَّ لَكُمُ الْقِتَالُ، فَصَلَّى بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً، وَالطَّائِفُ (* *) الأُخْرى مُوَاجِهَةُ الْعَدُوِّ، ثُمَّ انْصَرَفَ هَؤُلَاءِ فَقَامُوا مَقَامَ أولئِكَ وَجَاء أولئِكَ فَصَلَّوا بِهِم (* * *) رَكْعَةً أُخْرَى، ثُمَّ سَلَّمَ عَلَيْهِمْ".
The Messenger of Allah ﷺ led one section in one rak'ah of prayer and the other section was facing the enemy. Then they turned away and took the position of the other section. They (the other section) came and he (the Prophet) led them in the second rak'ah. He then uttered the salutation. Thereafter they stood up and completed the remaining rak'ah, they went away and the other section completed their remaining rak'ah. Abu Dawud said: This tradition has been narrated by Nafi' and Khalid b. Ma'dan from Ibn 'Umar in like manner from the Prophet ﷺ. This has also been transmitted similarly by Masruq ad Yusuf b. Mihran on the authority of Ibn 'Abbas. This has been narrated by Yunus from al-Hasan from Abu Musa something similarly, saying that Abu Musa has done so.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً وَالطَّائِفَةُ الأُخْرَى مُوَاجِهَةُ الْعَدُوِّ ثُمَّ انْصَرَفُوا فَقَامُوا فِي مَقَامِ أُولَئِكَ وَجَاءَ أُولَئِكَ فَصَلَّى بِهِمْ رَكْعَةً أُخْرَى ثُمَّ سَلَّمَ عَلَيْهِمْ ثُمَّ قَامَ هَؤُلاَءِ فَقَضَوْا رَكْعَتَهُمْ وَقَامَ هَؤُلاَءِ فَقَضَوْا رَكْعَتَهُمْ
"The Prophet prayed Salat Al-Khawf, praying one Rak'ah with one of the two groups, while the other group was facing the enemy. (When the first group finished they first Rak'ah with him), they went and took position (of the second group, facing the enemy). Then the second group came and he led them in another Rak'ah, then he said the Taslim to them, while the group proceeded to complete their (second) Rak'ah. Thereafter, the first group stood up to finish their (second) Rak'ah."
أَنَّ النَّبِيَّ ﷺ صَلَّى صَلاَةَ الْخَوْفِ بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً وَالطَّائِفَةُ الأُخْرَى مُوَاجِهَةُ الْعَدُوِّ ثُمَّ انْصَرَفُوا فَقَامُوا فِي مَقَامِ أُولَئِكَ وَجَاءَ أُولَئِكَ فَصَلَّى بِهِمْ رَكْعَةً أُخْرَى ثُمَّ سَلَّمَ عَلَيْهِمْ فَقَامَ هَؤُلاَءِ فَقَضَوْا رَكْعَتَهُمْ وَقَامَ هَؤُلاَءِ فَقَضَوْا رَكْعَتَهُمْ
[Machine] "Which one of you witnessed the prayer of fear with the Messenger of Allah ﷺ?" Hudhaifah said, "I did." So Hudhaifah commanded them to put on their weapons. Then he said, "If the enemy attacks you, then you may engage in battle." He led one group in prayer while the other group faced the enemy. Then he turned and performed another prayer with the second group. After that, the first group took their place and the other group came, and he performed another prayer with them. Then he greeted them."
سَعِيدٌ أَيُّكُمْ شَهِدَ مَعَ رَسُولِ اللهِ ﷺ صَلَاةَ الْخَوْفِ؟ فَقَالَ حُذَيْفَةُ أَنَا قَالَ فَأَمَرَهُمْ حُذَيْفَةُ فَلَبِسُوا السِّلَاحَ ثُمَّ قَالَ إِنْ هَاجَكُمْ هَيْجٌ فَقَدْ حَلَّ لَكُمُ الْقِتَالُ قَالَ فَصَلَّى بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً وَالطَّائِفَةُ الْأُخْرَى مُوَاجِهَةَ الْعَدُوِّ ثُمَّ انْصَرَفَ هَؤُلَاءِ فَقَامُوا مَقَامَ أُولَئِكَ وَجَاءَ أُولَئِكَ فَصَلَّى بِهِمْ رَكْعَةً أُخْرَى ثُمَّ سَلَّمَ عَلَيْهِمْ
The Messenger of Allah ﷺ led one section in one rak'ah of prayer and the other section was facing the enemy. Then they turned away and took the position of the other section. They (the other section) came and he (the Prophet) led them in the second rak'ah. He then uttered the salutation. Thereafter they stood up and completed the remaining rak'ah, they went away and the other section completed their remaining rak'ah. Abu Dawud said: This tradition has been narrated by Nafi' and Khalid b. Ma'dan from Ibn 'Umar in like manner from the Prophet ﷺ. This has also been transmitted similarly by Masruq ad Yusuf b. Mihran on the authority of Ibn 'Abbas. This has been narrated by Yunus from al-Hasan from Abu Musa something similarly, saying that Abu Musa has done so. (Using translation from Abū Dāʾūd 1243)
أَنَّ رَسُولَ اللهِ ﷺ صَلَّى صَلَاةَ الْخَوْفِ بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً وَالطَّائِفَةُ الْأُخْرَى مُوَاجِهَةٌ الْعَدُوَّ ثُمَّ انْصَرَفُوا فَقَامُوا فِي مَقَامِ أُولَئِكَ وَجَاءَ أُولَئِكَ فَصَلَّى بِهِمْ رَكْعَةً أُخْرَى ثُمَّ سَلَّمَ عَلَيْهِمْ ثُمَّ قَامَ هَؤُلَاءِ فَقَضَوْا رَكْعَتَهُمْ وَقَامَ هَؤُلَاءِ فَقَضَوْا رَكْعَتَهُمْ