The Book of Mosques and Places of Prayer
5/19. Chapter:
As-Sahw (forgetfulness) in prayer and prostrating to compensate for it
Sahih Muslim
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم صَلَّى الظُّهْرَ خَمْسًا فَلَمَّا سَلَّمَ قِيلَ لَهُ أَزِيدَ فِي الصَّلاَةِ قَالَ " وَمَا ذَاكَ " . قَالُوا صَلَّيْتَ خَمْسًا . فَسَجَدَ سَجْدَتَيْنِ .
'Abdullah (b. Mas'ud) reported: The Apostle of Allah (ﷺ) said five rak'ahs of the noon prayer and when he completed the prayer, It was said to him: Has there been (commanded) an addition In prayer? He said: What is it? They said: You have said five rak'ahs, so he performed two prostrations.
Reference : Sahih Muslim 572hIn-book reference : Book 5, Hadith 119USC-MSA web (English) reference : Book 4, Hadith 1175