The Prophet ﷺ left after only two units of an obligatory prayer. A man asked him, "Messenger of Allah, has the prayer been shortened, or did you forget?"He replied, "I did neither."The people said, "Yes, you did, Messenger of Allah."So he performed two more units, then concluded the prayer, and he did not perform the two prostrations of forgetfulness.
حدثنا إسمعيل بن أسد أخبرنا شبابة حدثنا ابن أبي ذئب عن سعيد بن أبي سعيد المقبري
أن النبي ﷺ انصرف من الركعتين من صلاة المكتوبة فقال له رجل أقصرت الصلاة يا رسول الله أم نسيت قال كل ذلك لم أفعل فقال الناس قد فعلت ذلك يا رسول الله فركع ركعتين أخريين ثم انصرف ولم يسجد سجدتي السهو
No references are available.
[Its chain of transmission is sahih. The hadith of Dawud bin Husayn: Malik narrated it: 1/94, and from his route Muslim narrated it, no. 573]