The Messenger of Allah (ﷺ) said two rak'ahs of the noon prayer and then gave salutation…

Sahih Muslim Book 5 Hadith 129

Sahih Muslim #573 d

The Book of Mosques and Places of Prayer 5:129

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.

Chapter: As-Sahw (forgetfulness) in prayer and prostrating to compensate for it

Grade: Sahih