The Messenger of Allah ﷺ ended the prayer after two units, and 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 said, "Yes."So the Messenger of Allah ﷺ stood and prayed the two remaining units, then gave the closing salutation. Then he said the takbir and prostrated as long as his usual prostration or longer, then he rose. Then he said the takbir and prostrated as long as his usual prostration or longer, then he rose.
حدثني يحيى عن مالك عن أيوب بن أبي تميمة السختياني عن محمد بن سيرين
أن رسول الله ﷺ انصرف من اثنتين فقال له ذو اليدين أقصرت الصلاة أم نسيت يا رسول الله فقال رسول الله ﷺ أصدق ذو اليدين فقال الناس نعم فقام رسول الله ﷺ فصلى ركعتين أخريين ثم سلم ثم كبر فسجد مثل سجوده أو أطول ثم رفع ثم كبر فسجد مثل سجوده أو أطول ثم رفع