Abdullah bin Buhayna reported,

The Prophet ﷺ led us in prayer, and he stood up after the first two rakahs without sitting and continued his prayer. When he finished the prayer, the people waited for him to give the salam, but he said the takbir and prostrated before giving the salam. Then he raised his head, said the takbir again, and prostrated a second time. Then he raised his head and gave the salam.

Bukhari 6670

Sahih

حدثنا آدم بن أبي إياس حدثنا ابن أبي ذئب عن الزهري عن الأعرج

عن عبد الله ابن بحينة قال

صلى بنا النبي ﷺ فقام في الركعتين الأوليين قبل أن يجلس فمضى في صلاته فلما قضى صلاته انتظر الناس تسليمه فكبر وسجد قبل أن يسلم ثم رفع رأسه ثم كبر وسجد ثم رفع رأسه وسلم

البخاري 6670صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
If one breaks an oath forgetfully
Numbering
Darussalam 6670
Bukhari 6670