Sahih al-Bukhari 1228
Book 22: Forgetfulness in Prayer · Hadith 5
Hadith text
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
Abu Huraira (رضی اللہ عنہ) bataate hain: Ek baar Allah ke Rasool ne do rakat padh kar namaz khatam kar di. Dhul-Yadain ne unse pucha: "Kya namaz kam hui hai ya aap bhool gaye?" Allah ke Rasool ne pucha: "Kya Dhul-Yadain sach keh rahe hain?" Logon ne haan kaha. Phir Allah ke Rasool khade hue, baaki do rakat padhi aur Taslim ki, phir Takbir kahi aur apne mamool jaisa ya usse thoda lamba do sajde kiye, phir uthe.
Sahih al-Bukhari 1228 · Book 22, Hadith 5