Narrator:Abdullah ibn Mas‘ūd
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَكِيعٌ، عَنْ مِسْعَرٍ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ
" إِذَا شَكَّ أَحَدُكُمْ فِي الصَّلاَةِ فَلْيَتَحَرَّ الصَّوَابَ ثُمَّ يَسْجُدْ سَجْدَتَيْنِ "
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."
Reported by Ibn Majah (No. 1212, 1203, 1205, 1211), Al-Bukhari (No. 401), Muslim (No. 572a, 572j, 572k, 572l), Abu Dawud (No. 1020, 1021, 1022), An-Nasa’i (No. 1240, 1242, 1243, 1244, 1256, 1259) and Ahmad (No. 3420, 3786, 3827, 3960, 4057, 4118).