Language:
كتاب السهو
22  
Forgetfulness in Prayer
(4)
Chapter: Whoever did not recite Tashah-dud (At-Tahiyyat) after the two prostrations of Sahw
(4)
باب مَنْ لَمْ يَتَشَهَّدْ فِي سَجْدَتَىِ السَّهْوِ
Sahih al-Bukhari 1228

Narrated Abu Huraira.:

Once Allah's Messenger (ﷺ) offered two rak`at and finished his prayer. So Dhul-Yadain asked him, "Has the prayer been reduced or have you forgotten?" Allah's Messenger (ﷺ) said, "Has Dhul-Yadain spoken the truth?" The people replied in the affirmative. Then Allah's Messenger (ﷺ) stood up and offered the remaining two rak`at and performed Taslim, and then said Takbir and performed two prostrations like his usual prostrations, or a bit longer, and then got up.

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكُ بْنُ أَنَسٍ، عَنْ أَيُّوبَ بْنِ أَبِي تَمِيمَةَ السَّخْتِيَانِيِّ، عَنْ مُحَمَّدِ بْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ‏.‏ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم انْصَرَفَ مِنِ اثْنَتَيْنِ فَقَالَ لَهُ ذُو الْيَدَيْنِ أَقُصِرَتِ الصَّلاَةُ أَمْ نَسِيتَ يَا رَسُولَ اللَّهِ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ أَصَدَقَ ذُو الْيَدَيْنِ ‏"‏‏.‏ فَقَالَ النَّاسُ نَعَمْ‏.‏ فَقَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم فَصَلَّى اثْنَتَيْنِ أُخْرَيَيْنِ ثُمَّ سَلَّمَ ثُمَّ كَبَّرَ فَسَجَدَ مِثْلَ سُجُودِهِ أَوْ أَطْوَلَ ثُمَّ رَفَعَ‏.‏
Reference : Sahih al-Bukhari 1228
In-book reference : Book 22, Hadith 5
USC-MSA web (English) reference : Vol. 2, Book 22, Hadith 319
  (deprecated numbering scheme)