كتاب إقامة الصلاة والسنة فيها
5  
Establishing the Prayer and the Sunnah Regarding Them
(133)
Chapter: What was narrated concerning one who is uncertain about his Prayer, so he should try to do what is correct
(133)
باب مَا جَاءَ فِيمَنْ شَكَّ فِي صَلاَتِهِ فَتَحَرَّى الصَّوَابَ
Sunan Ibn Majah 1212
It was narrated that ‘Abdullah said:
“The Messenger of Allah (ﷺ) said: ‘If anyone of you is uncertain about his prayer, let him try to do what is correct then let him prostrate twice.’”
Tanafisi said: "This is the basic rule, and no one is able to reject it."
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَكِيعٌ، عَنْ مِسْعَرٍ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِذَا شَكَّ أَحَدُكُمْ فِي الصَّلاَةِ فَلْيَتَحَرَّ الصَّوَابَ ثُمَّ يَسْجُدْ سَجْدَتَيْنِ ‏"‏ ‏.‏
قَالَ الطَّنَافِسِيُّ هَذَا الأَصْلُ وَلاَ يَقْدِرُ أَحَدٌ يَرُدُّهُ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1212
In-book reference : Book 5, Hadith 410
English translation : Vol. 1, Book 5, Hadith 1212