عَنْ أَبِي بَكْرَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّهُ قَالَ: صَلَّى بِنَا النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ صَلَاةَ الْخَوْفِ فَصَلَّى بِبَعْضِ أَصْحَابِهِ رَكْعَتَيْنِ ثُمَّ سَلَّمَ، فَتَأَخَّرُوا، وَجَاءَ آخَرُونَ فَكَانُوا فِي مَكَانِهِمْ فَصَلَّى بِهِمْ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ رَكْعَتَيْنِ ثُمَّ سَلَّمَ، فَصَارَ لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَرْبَعُ رَكَعَاتٍ وَلِلْقَوْمِ رَكْعَتَانِ رَكْعَتَانِ
Sayyiduna Abu Bakrah (may Allah be pleased with him) narrates: The Messenger of Allah (peace and blessings be upon him) led us in the prayer of fear. He (peace be upon him) led some people in two rak‘ahs of prayer and said the salam. These people left, and others came and stood in their place. Then he (peace be upon him) led them in two rak‘ahs of prayer and said the salam. Thus, the Prophet (peace be upon him) performed four rak‘ahs, and the people performed two each.