Abu Hurairah reported,

The Messenger of Allah ﷺ prayed two rak'ahs of the noon prayer and then gave the salaam. A man from Banu Sulaym came to him and asked, "Messenger of Allah, has the prayer been shortened, or did you forget?"And he continued the hadith.

Muslim 1291

Sahih

و حدثني حجاج بن الشاعر حدثنا هارون بن إسمعيل الخزاز حدثنا علي وهو ابن المبارك حدثنا يحيى حدثنا أبو سلمة حدثنا

أبو هريرة

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

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