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.
bayhaqi:5109Abū al-Ḥasan Muḥammad b. al-Ḥusayn al-ʿAlawī > ʿAbdullāh b. Muḥammad b. al-Ḥasan b. al-Sharqī > ʿAbdullāh b. Hāshim b. Ḥayyān al-Ṭūsī > Yaḥyá b. Saʿīd al-Qaṭṭān > Ashʿath > al-Ḥasan > Abū Bakarah

[Machine] That the Prophet ﷺ performed two units of prayer with these people, and another two units of prayer with those people. So, it amounted to four units for the Prophet ﷺ , and two units for them. Al-Shafi'i said, "And the last two units of these two units are voluntary for the Prophet ﷺ , and obligatory for others."  

البيهقي:٥١٠٩وَأَخْبَرَنَا أَبُو الْحَسَنِ مُحَمَّدُ بْنُ الْحُسَيْنِ الْعَلَوِيُّ أنبأ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ الْحَسَنِ بْنِ الشَّرْقِيِّ ثنا عَبْدُ اللهِ بْنُ هَاشِمِ بْنِ حَيَّانَ الطُّوسِيُّ ثنا يَحْيَى بْنُ سَعِيدٍ الْقَطَّانُ ثنا أَشْعَثُ عَنِ الْحَسَنِ عَنْ أَبِي بَكَرَةَ ؓ

أَنَّ النَّبِيَّ ﷺ صَلَّى بِهَؤُلَاءِ رَكْعَتَيْنِ وَهَؤُلَاءِ رَكْعَتَيْنِ فَكَانَتْ لِلنَّبِيِّ ﷺ أَرْبَعًا وَلَهُمْ رَكْعَتَيْنِ رَكْعَتَيْنِ قَالَ الشَّافِعِيُّ وَالْأَخِيرَةُ مِنْ هَاتَيْنِ لِلنَّبِيِّ ﷺ نَافِلَةٌ وَلِلْآخَرِينَ فَرِيضَةٌ  


See similar narrations below:

Collected by Aḥmad, Nasāʾī's Kubrá
ahmad:20408Yaḥyá > Ashʿath > al-Ḥasan > Abū Bakarah

[Machine] The Prophet ﷺ prayed with these two units of prayer, and with these two units of prayer. So, for the Prophet ﷺ , it was four units of prayer, and for them (the others), it was two units of prayer, two units of prayer.  

أحمد:٢٠٤٠٨حَدَّثَنَا يَحْيَى عَنْ أَشْعَثَ عَنِ الْحَسَنِ عَنْ أَبِي بَكَرَةَ

أَنَّ النَّبِيَّ ﷺ صَلَّى بِهَؤُلَاءِ الرَّكْعَتَيْنِ وَبِهَؤُلَاءِ الرَّكْعَتَيْنِ فَكَانَتْ لِلنَّبِيِّ ﷺ أَرْبَعًا وَلَهُمْ رَكْعَتَيْنِ رَكْعَتَيْنِ  

nasai-kubra:1956ʿAmr b. ʿAlī > Yaḥyá b. Saʿīd > al-Ashʿath > al-Ḥasan > Abū Bakarah

[Machine] On the authority of the Prophet ﷺ, in the prayer of fear, he prayed two units of prayer and with these (others) two units of prayer. So, it would be four units for the Prophet ﷺ and two units for them.  

الكبرى للنسائي:١٩٥٦أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ قَالَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ قَالَ حَدَّثَنَا الْأَشْعَثُ عَنِ الْحَسَنِ عَنْ أَبِي بَكَرَةَ

عَنِ النَّبِيِّ ﷺ «فِي صَلَاةِ الْخَوْفِ صَلَّى بِهِمْ رَكْعَتَيْنِ وَبِهَؤُلَاءِ رَكْعَتَيْنِ فَكَانَتْ لِلنَّبِيِّ ﷺ أَرْبَعًا وَلَهُمْ رَكْعَتَانِ رَكْعَتَانِ»