سنن ابن ماجه Sunan Ibn Majah كتاب إقامة الصلاة والسنة Establishing the Prayer and the Sunnah Regarding Them
. بَابُ : مَا جَاءَ فِيمَنْ شَكَّ فِي صَلاَتِهِ فَتَحَرَّى الصَّوَابَ

Chapter: What was narrated concerning one who is uncertain about his Prayer, so he should try to do what is correct

2 hadith
Hadith 1211
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ ، حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ ، حَدَّثَنَا شُعْبَةُ ، عَنْ مَنْصُورٍ ، قَالَ شُعْبَةُ : كَتَبَ إِلَيَّ وَقَرَأْتُهُ عَلَيْهِ ، قَالَ : أَخْبَرَنِي إِبْرَاهِيمُ ، عَنْ عَلْقَمَةَ ، عَنْ عَبْدِ اللَّهِ ، قَالَ : صَلَّى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَاةً لَا يَدْرِي أَزَادَ أَوْ نَقَصَ ، فَسَأَلَ ، فَحَدَّثْنَاهُ ، فَثَنَى رِجْلَهُ وَاسْتَقْبَلَ الْقِبْلَةَ ، وَسَجَدَ سَجْدَتَيْنِ ثُمَّ سَلَّمَ ، ثُمَّ أَقْبَلَ عَلَيْنَا بِوَجْهِهِ ، فَقَالَ : " لَوْ حَدَثَ فِي الصَّلَاةِ شَيْءٌ لَأَنْبَأْتُكُمُوهُ ، وَإِنَّمَا أَنَا بَشَرٌ أَنْسَى كَمَا تَنْسَوْنَ ، فَإِذَا نَسِيتُ فَذَكِّرُونِي ، وَأَيُّكُمْ مَا شَكَّ فِي الصَّلَاةِ ، فَلْيَتَحَرَّ أَقْرَبَ ذَلِكَ مِنَ الصَّوَابِ ، فَيُتِمَّ عَلَيْهِ ، وَيُسَلِّمَ ، وَيَسْجُدَ سَجْدَتَيْنِ " .
´It was narrated that ‘Abdullah said:` “The Messenger of Allah (ﷺ) offered prayer, and I am not sure whether he did something extra or omitted something. He asked, and we told him, so he turned to face the Qiblah and prostrated twice, then he said the Salam. Then he turned to face us and said: ‘If any new command has been revealed concerning the prayer, I would certainly have told you. But I am only human and I forget and you forget. If I forget, then remind me. And if anyone of you is uncertain about the prayer, let him do what is closest to what is correct, then complete the prayer, say the Salam and prostrate twice.”
Hadith Reference Sunan Ibn Majah / Establishing the Prayer and the Sunnah Regarding Them / Hadith: 1211
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: بخاري ومسلم
Hadith Takhrij « صحیح البخاری/الصلاة 31 ( 401 ) ، 32 ( 404 ) ، السہو 2 ( 1226 ) ، الأیمان والنذور 15 ( 6671 ) ، أخبارالآحاد1 ، ( 7249 ) ، صحیح مسلم/المساجد 19 ( 572 ) ، سنن ابی داود/الصلاة 196 ( 1020 ) ، سنن النسائی/السہو 25 ( 1241 ، 1242 ) ، ( تحفة الأشراف : 9451 ) ، وقد أخرجہ : سنن الترمذی/الصلاة 173 ، ( 392 ) ، مسند احمد ( 1/379 ، 419 ، 438 ، 455 ) ، دي الصلاة 175 ( 1539 ) ( صحیح ) »
Hadith 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."
Hadith Reference Sunan Ibn Majah / Establishing the Prayer and the Sunnah Regarding Them / Hadith: 1212
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: صحيح
Hadith Takhrij « انظر ما قبلہ ، ( تحفة الأشراف : 9451 ) ( صحیح ) »