Abu Hurairah reported,

The Messenger of Allah ﷺ led us in the afternoon prayer and gave the closing salutation after only two units. Dhul-Yadayn stood up and asked, "Has the prayer been shortened, Messenger of Allah, or did you forget?"The Messenger of Allah ﷺ replied, "Neither has happened."Dhul-Yadayn said, "Something of the sort has indeed happened, Messenger of Allah."The Messenger of Allah ﷺ then turned to the people and asked, "Has Dhul-Yadayn spoken truthfully?"They answered, "Yes, Messenger of Allah."So the Messenger of Allah ﷺ completed what remained of the prayer, then performed two prostrations while seated after giving the closing salutation.

Muslim 1290

Sahih

حدثنا قتيبة بن سعيد عن مالك بن أنس عن داود بن الحصين عن أبي سفيان مولى ابن أبي أحمد أنه قال سمعت

أبا هريرة يقول

ا صلى لنا رسول الله ﷺ صلاة العصر فسلم في ركعتين فقام ذو اليدين فقال أقصرت الصلاة يا رسول الله أم نسيت فقال رسول الله ﷺ كل ذلك لم يكن فقال قد كان بعض ذلك يا رسول الله فأقبل رسول الله ﷺ على الناس فقال أصدق ذو اليدين فقالوا نعم يا رسول الله فأتم رسول الله ﷺ ما بقي من الصلاة ثم سجد سجدتين وهو جالس بعد التسليم

مسلم 1290صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Forgetfulness in prayer and sujud for it
Numbering
Darussalam 1290
Muslim 1290