كتاب إقامة الصلاة والسنة فيها
5  
Establishing the Prayer and the Sunnah Regarding Them
(132)
Chapter: What was narrated concerning one who is uncertain about his Prayer; let him refer to what is more certain
(132)
باب مَا جَاءَ فِيمَنْ شَكَّ فِي صَلاَتِهِ فَرَجَعَ إِلَى الْيَقِينِ
Sunan Ibn Majah 1210
It was narrated that Abu Sa’eed Al-Khudri said:
“The Messenger of Allah (ﷺ) said: ‘If anyone of you is uncertain about his prayer, let him put aside uncertainty and act upon that which is certain. When he has made sure his prayer is complete, then let him prostrate twice. Then if his prayer was complete, that (extra) Rak’ah will be counted as voluntary, and if his prayer was lacking, that Rak’ah will complete his prayer, and the two prostrations will rub the Satan’s nose in the dust.’”
حَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنِ ابْنِ عَجْلاَنَ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِذَا شَكَّ أَحَدُكُمْ فِي صَلاَتِهِ فَلْيُلْغِ الشَّكَّ وَلْيَبْنِ عَلَى الْيَقِينِ فَإِذَا اسْتَيْقَنَ التَّمَامَ سَجَدَ سَجْدَتَيْنِ فَإِنْ كَانَتْ صَلاَتُهُ تَامَّةً كَانَتِ الرَّكْعَةُ نَافِلَةً وَإِنْ كَانَتْ نَاقِصَةً كَانَتِ الرَّكْعَةُ لِتَمَامِ صَلاَتِهِ وَكَانَتِ السَّجْدَتَانِ رَغْمَ أَنْفِ الشَّيْطَانِ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1210
In-book reference : Book 5, Hadith 408
English translation : Vol. 1, Book 5, Hadith 1210