(15) بَابُ إِذَا حَنِثَ نَاسِيًا فِي الأَيْمَانِ
Narrated `Abdullah bin Buhaina:
Once Allah's Messenger (ﷺ) led us in prayer, and after finishing the first two rak`at, got up (instead of sitting for at-Tahiyyat) and then carried on with the prayer. When he had finished his prayer, the people were waiting for him to say Taslim, but before saying Tasiim, he said Takbir and prostrated; then he raised his head, and saying Takbir, he prostrated (SAHU) and then raised his head and finished his prayer with Taslim.
Reference: Sahih al-Bukhari 6670
In-book reference: Book 83, Hadith 48
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 78, Hadith 663