[Machine] The Prophet Muhammad ﷺ said, "The prayer of fear is performed by the Imam and a group of people with him. They all prostrate together in one prostration. There is another group between them and the enemy. Then those who prostrated with their leader leave, taking the place of those who did not perform the prayer. Then those who did not perform the prayer come forward and pray with their leader, performing one prostration. Then their leader leaves after completing his prayer, and each person from the two groups performs one prostration for their own prayer. If the fear is more intense, then men and riders perform one prostration, meaning one unit of prayer."
قَالَ رَسُولُ اللهِ ﷺ «صَلَاةُ الْخَوْفِ يَقُومُ الْإِمَامُ وَطَائِفَةٌ مِنَ النَّاسِ مَعَهُ فَيَسْجُدُونَ سَجْدَةً وَاحِدَةً وَتَكُونُ طَائِفَةٌ بَيْنَهُمْ وَبَيْنَ الْعَدُوِّ ثُمَّ يَنْصَرِفُ الَّذِينَ سَجَدُوا مَعَ أَمِيرِهِمْ فَيَكُونُ مَكَانُ الَّذِينَ لَمْ يُصَلُّوا وَيَتَقَدَّمُ الَّذِينَ لَمْ يُصَلُّوا فَيُصَلُّونَ مَعَ أَمِيرِهِمْ سَجْدَةً وَاحِدَةً ثُمَّ يَنْصَرِفُ أَمِيرُهُمْ وَقَدْ قَضَى صَلَاتَهُ وَيُصَلِّي كُلُّ وَاحِدَةٍ مِنَ الطَّائِفَتَيْنِ لِصَلَاتِهِ سَجْدَةً لِنَفْسِهِ فَإِنْ كَانَ خَوْفًا أَشَدَّ مِنْ ذَلِكَ فَرِجَالًا وَرُكْبَانًا يَعْنِي بِالسَّجْدَةِ رَكْعَةً »