(19) باب السَّهْوِ فِي الصَّلاَةِ وَالسُّجُودِ لَهُ
Abu Huraira reported:
The Messenger of Allah (ﷺ) said two rak'ahs of the noon prayer and then gave salutation when a man from Band Sulaim came to him and said: Messenger of Allah. has the prayer been shortened, or have you forgotten? -and the rest of the hadith is the same.
Reference: Sahih Muslim 573 d
In-book reference: Book 5, Hadith 129
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1185