Mughira bin Shuba reported,

The Messenger of Allah ﷺ said, "When one of you rises from the second rakah but has not yet stood fully upright, let him sit back down. But if he has stood fully upright, let him not sit, and let him perform the two prostrations of forgetfulness."

Ibn Majah 1208

Daif

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

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

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

ابن ماجه 1208ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Standing up from two rakats forgetfully
Numbering
Darussalam 1208
Ibn Majah 1208