[Machine] The Prophet ﷺ performed the prayer of fear with one of the two groups, consisting of one raka'ah (unit of prayer) and two prostrations. The other group faced the enemy. Then, the group that was with the Prophet ﷺ left, and the other group approached. The Prophet ﷺ performed one raka'ah and two prostrations with that group. Then, the Prophet ﷺ concluded the prayer by saying the tasleem (salutation), and then each man from the two groups stood up and performed one raka'ah and two prostrations individually.
أَنَّ النَّبِيَّ ﷺ صَلَّى صَلَاةَ الْخَوْفِ بِإِحْدَى الطَّائِفَتَيْنِ رَكْعَةً وَسَجْدَتَيْنِ وَالطَّائِفَةُ الْأُخْرَى مُوَاجِهَةُ الْعَدُوِّ ثُمَّ انْصَرَفَتِ الطَّائِفَةُ الَّتِي مَعَ النَّبِيِّ ﷺ وَأَقْبَلَتِ الطَّائِفَةُ الْأُخْرَى فَصَلَّى بِهَا النَّبِيُّ ﷺ رَكْعَةً وَسَجْدَتَيْنِ ثُمَّ سَلَّمَ النَّبِيُّ ﷺ ثُمَّ قَامَ كُلُّ رَجُلٍ مِنَ الطَّائِفَتَيْنِ فَرَكَعَ لِنَفْسِهِ رَكْعَةً وَسَجْدَتَيْنِ