[Machine] The Messenger of Allah ﷺ performed the prayer of fear with his companions. He prayed two units of prayer and the others faced their enemies. Then he saluted and the others came and he prayed two units with them and then saluted. So the Messenger of Allah ﷺ prayed four units and the people prayed two units each.
أَنَّ رَسُولَ اللهِ ﷺ «صَلَّى بِأَصْحَابِهِ صَلَاةَ الْخَوْفِ فَصَلَّى بِطَائِفَةٍ رَكْعَتَيْنِ وَالْآخَرُونَ يُقْبِلُونَ عَلَى عَدُوِّهِمْ ثُمَّ سَلَّمَ ثُمَّ جَاءَ الْآخَرُونَ فَصَلَّى بِهِمْ رَكْعَتَيْنِ ثُمَّ سَلَّمَ فَكَانَتْ لِرَسُولِ اللهِ ﷺ أَرْبَعَ رَكَعَاتٍ وَلِلنَّاسِ رَكْعَتَيْنِ رَكْعَتَيْنِ»