[Machine] I prayed the prayer of fear behind the Prophet ﷺ. A group of us lined up behind him, while another group went towards the enemy. They shouted the takbeer (saying "Allahu Akbar") and then he (the Prophet) led them in rukoo' (bowing) and sujood (prostration) twice. Then the group that was with him departed, and they (the other group) went towards the enemy. Then another group came and lined up behind him, and the Prophet ﷺ made the tasleem (saying "Assalamu Alaikum" to end the prayer). Then every man from both groups performed a two-rakah prayer for himself.
«صَلَّيْتُ مَعَ نَبِيِّ اللهِ ﷺ صَلَاةَ الْخَوْفِ فَصَفَّ وَرَاءَهُ طَائِفَةً مِنَّا وَأَقْبَلَتْ طَائِفَةٌ عَلَى الْعَدُوِّ فَكَبَّرَ ثُمَّ رَكَعَ بِهِمْ وَسَجَدَ سَجْدَتَيْنِ ثُمَّ انْصَرَفَتِ الطَّائِفَةُ الَّتِي مَعَهُ فَأَقْبَلُوا عَلَى الْعَدُوِّ وَجَاءَتِ الطَّائِفَةُ الْأُخْرَى فَصُفُّوا وَرَاءَهُ ثُمَّ سَلَّمَ نَبِيُّ اللهِ ﷺ فَقَامَ كُلُّ رَجُلٍ مِنَ الطَّائِفَتَيْنِ فَقَضَى لِنَفْسِهِ رَكْعَةً وَسَجْدَتَيْنِ»