Abdullah bin Buhayna reported,

The Messenger of Allah ﷺ led us in two rakahs, then stood up without sitting, and the people stood with him. When he completed his prayer and we were watching for his salam, he said the takbir and performed two prostrations while seated before the salam, then he gave the salam.

Nasai 1223

Sahih

أخبرنا قتيبة بن سعيد عن مالك عن ابن شهاب عن عبد الرحمن الأعرج

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

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

النسائي 1223صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Forgetfulness
Chapter
What one does if he stands from the second rakah forgetfully without having said the tashahhud
Numbering
Darussalam 1223
Nasai 1223