Abu Hurairah reported,

The Prophet ﷺ led us in the noon prayer, performing only two units before giving the closing salutation. He then stood and went to a piece of wood at the front of the mosque and rested his hand upon it. Among the people that day were Abu Bakr and Umar, but they were too in awe of him to speak. The people who were in a hurry rushed out, saying, "The prayer has been shortened."Among the gathering was a man whom the Prophet ﷺ used to call Dhul-Yadayn. He asked, "Prophet of Allah, did you forget, or has the prayer been shortened?"The Prophet ﷺ replied, "I have not forgotten, nor has it been shortened."The people said, "You did indeed forget, Messenger of Allah."He said, "Dhul-Yadayn has spoken truthfully."So he stood and prayed the remaining two units, then gave the closing salutation. He then said the takbir and prostrated as long as his usual prostration or longer. Then he raised his head and said the takbir. Then he prostrated again as long as his usual prostration or longer, then raised his head and said the takbir.

Bukhari 6051

Sahih

حدثنا حفص بن عمر حدثنا يزيد بن إبراهيم حدثنا محمد

عن أبي هريرة

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

البخاري 6051صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
What is permissible of mentioning people such as saying the tall one and the short one
Numbering
Darussalam 6051
Bukhari 6051