صحيح البخاري Sahih Bukhari كتاب السهو The Book of As-Sahw (Forgetting)
بَابُ إِذَا سَلَّمَ فِي رَكْعَتَيْنِ أَوْ ثَلاَثٍ فَسَجَدَ سَجْدَتَيْنِ مِثْلَ سُجُودِ الصَّلاَةِ أَوْ أَطْوَلَ:

(3) Chapter. If one finishes his Salat (prayer) with Taslim after offering two or three Rakat (by mistake), then he should perform two prostrations (of Sahw) like ordinary prostrations of the Salat (prayer), or longer.

1 hadith
Hadith 1227
حَدَّثَنَا آدَمُ ، حَدَّثَنَا شُعْبَةُ ، عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ ، عَنْ أَبِي سَلَمَةَ ، عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ , قَالَ : " صَلَّى بِنَا النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الظُّهْرَ أَوِ الْعَصْرَ فَسَلَّمَ ، فَقَالَ لَهُ ذُو الْيَدَيْنِ : الصَّلَاةُ يَا رَسُولَ اللَّهِ أَنَقَصَتْ ، فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لِأَصْحَابِهِ أَحَقٌّ مَا يَقُولُ ؟ ، قَالُوا : نَعَمْ ، فَصَلَّى رَكْعَتَيْنِ أُخْرَيَيْنِ ، ثُمَّ سَجَدَ سَجْدَتَيْنِ " ، قَالَ سَعْدٌ : وَرَأَيْتُ عُرْوَةَ بْنَ الزُّبَيْرِ صَلَّى مِنَ الْمَغْرِبِ رَكْعَتَيْنِ فَسَلَّمَ وَتَكَلَّمَ ، ثُمَّ صَلَّى مَا بَقِيَ وَسَجَدَ سَجْدَتَيْنِ ، وَقَالَ : هَكَذَا فَعَلَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ .
Narrated Abu Huraira: The Prophet led us in the `Asr or the Zuhr prayer and finished it with Taslim. Dhul-Yadain said to him, "O Allah's Apostle! Has the prayer been reduced?" The Prophet asked his companions in the affirmative. So Allah's Apostle I offered two more rak`at and then performed two prostrations (of Sahu). Sa`d said, "I saw that 'Urwa bin Az-Zubair had offered two rak`at in the Maghrib prayer and finished it with Taslim. He then talked (and when he was informed about it) he completed the rest of his prayer and performed two prostrations, and said, 'The Prophet prayed like this.' "
Hadith Reference Sahih Bukhari / The Book of As-Sahw (Forgetting) / Hadith: 1227
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة