أَخْبَرَنَا أَبُو طَاهِرٍ الْمُبَارَكُ بْنُ أَبِي الْمَعْطُوشِ بِقِرَاءَتِي عَلَيْهِ بِبَغْدَادَ ، قُلْتُ لَهُ : أَخْبَرَكُمْ هِبَةُ اللهِ بْنُ مُحَمَّدِ بْنِ الْحُصَيْنِ قِرَاءَةً عَلَيْهِ وَأَنْتَ تَسْمَعُ ، أَنَا أَبُو عَلِيٍّ الْحَسَنُ بْنُ عَلِيِّ بْنِ الْمُذْهِبِ ، أَنَا
أَبُو بَكْرٍ أَحْمَدُ بْنُ جَعْفَرِ بْنِ حَمْدَانَ ، نَا
أَبُو عَبْدِ الرَّحْمَنِ عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ ، حَدَّثَنِي
أَبِي ، نَا
إِبْرَاهِيمُ بْنُ سَعْدٍ ، حَدَّثَنِي
مُحَمَّدُ بْنُ إِسْحَاقَ ، عَنْ
مَكْحُولٍ ، عَنْ
كُرَيْبٍ ، عَنِ
ابْنِ عَبَّاسٍ أَنَّهُ قَالَ لَهُ
عُمَرُ : يَا غُلَامُ ، هَلْ سَمِعْتَ مِنْ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ أَوْ مِنْ أَحَدٍ مِنْ أَصْحَابِهِ : إِذَا شَكَّ الرَّجُلُ فِي صَلَاتِهِ مَاذَا يَصْنَعُ ؟ قَالَ : فَبَيْنَا هُوَ كَذَلِكَ إِذْ أَقْبَلَ
عَبْدُ الرَّحْمَنِ بْنُ عَوْفٍ فَقَالَ : فِيمَ أَنْتُمَا ؟ فَقَالَ
عُمَرُ : سَأَلْتُ هَذَا الْغُلَامَ هَلْ سَمِعَ مِنْ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ أَوْ أَحَدٍ مِنْ أَصْحَابِهِ إِذَا شَكَّ الرَّجُلُ فِي صَلَاتِهِ مَاذَا يَصْنَعُ ؟ فَقَالَ
عَبْدُ الرَّحْمَنِ : سَمِعْتُ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ يَقُولُ : إِذَا شَكَّ أَحَدُكُمْ فِي صَلَاتِهِ فَلَمْ يَدْرِ وَاحِدَةً صَلَّى أَوِ اثْنَتَيْنِ فَلْيَجْعَلْهَا وَاحِدَةً ، وَإِذَا لَمْ يَدْرِ اثْنَتَانِ صَلَّى أَوْ ثَلَاثًا فَلْيَجْعَلْهَا اثْنَتَيْنِ ، وَإِذَا لَمْ يَدْرِ ثَلَاثًا صَلَّى أَمْ أَرْبَعًا فَلْيَجْعَلْهَا ثَلَاثًا ، ثُمَّ لْيَسْجُدْ إِذَا فَرَغَ مِنْ صَلَاتِهِ وَهُوَ جَالِسٌ قَبْلَ أَنْ يُسَلِّمَ .
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that Sayyiduna Umar (may Allah be pleased with him) said to him: "O boy! Have you heard from the Messenger of Allah (peace and blessings be upon him) or from any of his Companions what a man should do when he is in doubt in his prayer?"
The narrator said: While they were in this conversation, Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) suddenly came and asked: "What are you two talking about?" Sayyiduna Umar (may Allah be pleased with him) said: "I asked this boy whether he has heard from the Messenger of Allah (peace and blessings be upon him) or from any of his Companions what a man should do when he is in doubt in his prayer." At this, Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) said: I heard the Messenger of Allah (peace and blessings be upon him) say: "When one of you is in doubt in his prayer and does not know whether he has prayed one rak'ah or two, let him count it as one; and when he does not know whether he has prayed two or three, let him count them as two; and when he does not know whether he has prayed three or four, let him count them as three; then, when he has finished his prayer, let him perform the prostrations (of forgetfulness) while sitting, before giving the salam."
Related hadith on this topic