Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:20497Rawḥ > Ashʿath > al-Ḥasan > Abū Bakarah

[Machine] He (the Prophet Muhammad ﷺ) said, "He performed the prayer of fear with us." He performed two units of prayer with some of his companions, then he finished and they stayed behind. Others came and they were in their place, so he performed two units of prayer with them and then finished. So the Prophet ﷺ performed four units of prayer and the others performed two units of prayer.  

أحمد:٢٠٤٩٧حَدَّثَنَا رَوْحٌ حَدَّثَنَا أَشْعَثُ عَنِ الْحَسَنِ عَنْ أَبِي بَكَرَةَ

أَنَّهُ قَالَ صَلَّى بِنَا النَّبِيُّ ﷺ صَلَاةَ الْخَوْفِ فَصَلَّى بِبَعْضِ أَصْحَابِهِ رَكْعَتَيْنِ ثُمَّ سَلَّمَ فَتَأَخَّرُوا وَجَاءَ آخَرُونَ فَكَانُوا فِي مَكَانِهِمْ فَصَلَّى بِهِمْ رَكْعَتَيْنِ ثُمَّ سَلَّمَ فَصَارَ لِلنَّبِيِّ ﷺ أَرْبَعُ رَكَعَاتِ وَلِلْقَوْمِ رَكْعَتَانِ رَكْعَتَانِ