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.
abudawud:152Hudbah b. Khālid > Hammām > Qatādah > al-Ḥasan > Zurārah b. Awfá > al-Mughīrah b. Shuʿbah

The Messenger of Allah ﷺ lagged behind (in a journey). He then narrated this story saying : Then we came to people. ‘Abd al-Rahman was leading them in the dawn prayer. When he perceived the presence of the Prophet ﷺ, he intended to retire. The Prophet ﷺ asked him to continue and I and the Prophet ﷺoffered one rak’ah of prayer behind him. When he had pronounced the salutation, the Prophet ﷺ got up and offered the rak’ah which had been finished before, and he made no addition to it. Abu Dawud said: Abu Sa’id al-Khudri, Ibn al-Zubair and Ibn ‘Umar hold the opinion that whoever gets an odd number of the rak’ahs of prayer, he should perform two prostrations on account of forgetfulness.  

أبو داود:١٥٢حَدَّثَنَا هُدْبَةُ بْنُ خَالِدٍ حَدَّثَنَا هَمَّامٌ عَنْ قَتَادَةَ عَنِ الْحَسَنِ وَعَنْ زُرَارَةَ بْنِ أَوْفَى أَنَّ الْمُغِيرَةَ بْنَ شُعْبَةَ قَالَ

تَخَلَّفَ رَسُولُ اللَّهِ ﷺ فَذَكَرَ هَذِهِ الْقِصَّةَ قَالَ فَأَتَيْنَا النَّاسَ وَعَبْدُ الرَّحْمَنِ بْنُ عَوْفٍ يُصَلِّي بِهِمُ الصُّبْحَ فَلَمَّا رَأَى النَّبِيَّ ﷺ أَرَادَ أَنْ يَتَأَخَّرَ فَأَوْمَأَ إِلَيْهِ أَنْ يَمْضِيَ قَالَ فَصَلَّيْتُ أَنَا وَالنَّبِيُّ ﷺ خَلْفَهُ رَكْعَةً فَلَمَّا سَلَّمَ قَامَ النَّبِيُّ ﷺ فَصَلَّى الرَّكْعَةَ الَّتِي سُبِقَ بِهَا وَلَمْ يَزِدْ عَلَيْهَا شَيْئًا  

قَالَ أَبُو دَاوُدَ أَبُو سَعِيدٍ الْخُدْرِيُّ وَابْنُ الزُّبَيْرِ وَابْنُ عُمَرَ يَقُولُونَ مَنْ أَدْرَكَ الْفَرْدَ مِنَ الصَّلاَةِ عَلَيْهِ سَجْدَتَا السَّهْوِ

See similar narrations below:

Collected by Bayhaqī
bayhaqi:3888Abū ʿAlī al-Rūdhbārī > Abū Bakr b. Dāsah > Abū Dāwud > Hudbah b. Khālid > Hammām > Qatādah > al-Ḥasan > Zurārah b. Awafá > al-Mughīrah b. Shuʿbah

The Messenger of Allah ﷺ lagged behind (in a journey). He then narrated this story saying : Then we came to people. ‘Abd al-Rahman was leading them in the dawn prayer. When he perceived the presence of the Prophet ﷺ, he intended to retire. The Prophet ﷺ asked him to continue and I and the Prophet ﷺoffered one rak’ah of prayer behind him. When he had pronounced the salutation, the Prophet ﷺ got up and offered the rak’ah which had been finished before, and he made no addition to it. Abu Dawud said: Abu Sa’id al-Khudri, Ibn al-Zubair and Ibn ‘Umar hold the opinion that whoever gets an odd number of the rak’ahs of prayer, he should perform two prostrations on account of forgetfulness. (Using translation from Abū Dāʾūd 152)   

البيهقي:٣٨٨٨وَأَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاوُدَ ثنا هُدْبَةُ بْنُ خَالِدٍ ثنا هَمَّامٌ عَنْ قَتَادَةَ عَنِ الْحَسَنِ وَعَنْ زُرَارَةَ بْنِ أَوَفَى أَنَّ الْمُغِيرَةَ بْنَ شُعْبَةَ قَالَ

تَخَلَّفَ رَسُولُ اللهِ ﷺ فَذَكَرَ قِصَّةً قَالَ فَأَتَيْنَا النَّاسَ وَعَبْدُ الرَّحْمَنِ بْنُ عَوْفٍ يُصَلِّي بِهُمُ الصُّبْحَ فَلَمَّا رَأَى النَّبِيَّ ﷺ أَرَادَ أَنْ يَتَأَخَّرَ فَأَوْمَأَ إِلَيْهِ أَنْ يَمْضِيَ قَالَ فَصَلَّيْتُ أَنَا وَالنَّبِيُّ ﷺ خَلْفَهُ رَكْعَةً فَلَمَّا سَلَّمَ قَامَ النَّبِيُّ ﷺ فَصَلَّى الرَّكْعَةَ الَّتِي سُبِقَ بِهَا وَلَمْ يَزِدْ عَلَيْهَا شَيْئًا قَالَ أَبُو دَاوُدَ أَبُو سَعِيدٍ الْخُدْرِيُّ وَابْنُ عُمَرَ وَابْنُ الزُّبَيْرِ يَقُولُونَ مَنْ أَدْرَكَ الْفَرْضَ مِنَ الصَّلَاةِ عَلَيْهِ سَجْدَتَا السَّهْوِ قَالَ الشَّيْخُ وَحَدِيثُ رَسُولِ اللهِ ﷺ أَوْلَى أَنْ يُتَّبَعَ