Mughira bin Shuba reported,

The Messenger of Allah ﷺ said, "When the imam stands after the second rakah, if he remembers before he has fully risen, he should sit back down. But if he has already risen fully, he should not sit, and he should perform the two prostrations of forgetfulness."

Abu Dawud 1036

Daif

حدثنا الحسن بن عمرو عن عبد الله بن الوليد عن سفيان عن جابر يعني الجعفي قال حدثنا المغيرة بن شبيل الأحمسي عن قيس بن أبي حازم

عن المغيرة بن شعبة قال

قال رسول الله ﷺ إذا قام الإمام في الركعتين فإن ذكر قبل أن يستوي قائما فليجلس فإن استوى قائما فلا يجلس ويسجد سجدتي السهو

أبو داود 1036ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
One who forgets to recite tashahhud while sitting
Numbering
Darussalam 1036
Abu Dawud 1036