Abu Hurairah reported,

The Messenger of Allah ﷺ concluded the prayer after only two units.Dhul-Yadayn said to him, "Has the prayer been shortened, or did you forget, Messenger of Allah?"The Messenger of Allah ﷺ asked, "Is Dhul-Yadayn telling the truth?"The people answered, "Yes."So the Messenger of Allah ﷺ stood and prayed the remaining two units, then gave the closing salutation. He then said the takbir and prostrated like his usual prostration or longer, then raised his head. He said the takbir again and prostrated like his usual prostration or longer, then raised his head.

Azami 2475

Sahih

عن أبي هريرة

أن رسول الله ﷺ انصرف من اثنتين. فقال له ذو اليدين: أقصرت الصلاة أم نسيت يا رسول الله؟ فقال رسول الله ﷺ: أصدق ذو اليدين؟ فقال الناس: نعم. فقام رسول الله ﷺ، فصلى ركعتين أخريين، ثم سلم، ثم كبر فسجد مثل سجوده أو أطول، ثم رفع، ثم كبر فسجد مثل سجوده أو أطول، ثم رفع.

الأعظمي 2475صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Forgetfulness
Section
Prostration of forgetfulness after the taslim
Numbering
Jami al-Kamil 2475 (2nd edition)
Azami 2475