Hadith 1400

حَدَّثَنَا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ زِيَادٍ ، ثنا إِسْمَاعِيلُ بْنُ إِسْحَاقَ ، ثنا عَبْدُ الْجَبَّارِ بْنُ سَعِيدِ بْنِ سُلَيْمَانَ بْنِ نَوْفَلِ بْنِ مُسَاحِقٍ ، حَدَّثَنِي سُلَيْمَانُ بْنُ مُحَمَّدِ بْنِ أَبِي سَبْرَةَ ابْنِ أَخِي أَبِي بَكْرٍ ، حَدَّثَنِي أَبُو بَكْرِ بْنُ أَبِي سَبْرَةَ ، عَنْ زَيْدِ بْنِ أَسْلَمَ ، عَنْ عَطَاءِ بْنِ يَسَارٍ ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ، عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، أَنَّهُ قَالَ : " إِذَا شَكَّ أَحَدُكُمْ فِي صَلاتِهِ فَلَمْ يَدْرِ كَمْ صَلَّى أَرْبَعًا أَوْ ثَلاثًا ، فَلْيَطْرَحِ الشَّكَّ وَلْيَبْنِ عَلَى الْيَقِينِ ، ثُمَّ لِيَقُمْ فَيُصَلِّي رَكْعَةً ثُمَّ سَجَدَ سَجْدَتَيْنِ وَهُوَ جَالِسٌ قَبْلَ التَّسْلِيمِ ، فَإِنْ كَانَتْ صَلاتُهُ أَرْبَعًا وَقَدْ زَادَ رَكْعَةً كَانَتْ هَاتَانِ السَّجْدَتَانِ تُشْفِعَانِ الْخَامِسَةَ ، وَإِنْ كَانَتْ صَلاتُهُ ثَلاثًا كَانَتِ الرَّابِعَةُ تَمَامَهَا وَالسَّجْدَتَانِ تَرْغِيمًا لِلشَّيْطَانِ " .
Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): "When a person has doubt about his prayer and does not know how many rak'ahs he has performed: four or three? Then he should put aside the doubt and base it on what is certain, then stand up and recite (Qira'at) and perform one rak'ah. Then when he is sitting (i.e., reciting Tashahhud), before saying the salam, he should perform two prostrations of forgetfulness (sajda sahw). If he had already performed four rak'ahs, then now one rak'ah will be extra for him, and these two prostrations will make it even, which was the fifth rak'ah. And if he had already performed three rak'ahs, then the fourth rak'ah will complete it for him, and the two prostrations of forgetfulness will rub the nose of Satan in the dust."
Hadith Reference سنن الدارقطني /  كتاب الصلاة / 1400
Hadith Takhrij «أخرجه مسلم فى ((صحيحه)) برقم: 571، ومالك فى ((الموطأ)) برقم: 315 ، وابن خزيمة فى ((صحيحه)) برقم: 29، وابن حبان فى ((صحيحه)) برقم: 2663، والحاكم فى ((مستدركه)) برقم: 463، والنسائي فى ((المجتبیٰ)) برقم: 1237 ، وأبو داود فى ((سننه)) برقم: 1024، 1026، والترمذي فى ((جامعه)) برقم: 396، والدارمي فى ((مسنده)) برقم: 1536، وابن ماجه فى ((سننه)) برقم: 514، 1204، والدارقطني فى ((سننه)) برقم: 1396، 1397، 1398، 1399، 1400، 1405، 1406، وأحمد فى ((مسنده)) برقم: 11241»