حَدَّثَنَا أَبُو خَيْثَمَةَ ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ ، عَنِ الدَّسْتُوَائِيِّ ، عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ ، عَنْ عِيَاضٍ قَالَ : قُلْتُ لِأَبِي سَعِيدٍ الْخُدْرِيِّ : أَحَدُنَا يُصَلِّي فَلَا يَدْرِي كَمْ صَلَّى ، فَقَالَ : قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : إِذَا صَلَّى أَحَدُكُمْ فَلَمْ يَدْرِ كَمْ صَلَّى ، فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ ، وَإِذَا جَاءَ أَحَدَكُمُ الشَّيْطَانُ وَهُوَ فِي صَلَاتِهِ ، فَقَالَ : إِنَّكَ قَدْ أَحْدَثْتَ ، فَلْيَقُلْ : كَذَبْتَ ، إِلَّا مَا وَجَدَ رِيحَهُ بِأَنْفِهِ أَوْ سَمِعَ صَوْتًا بِأُذُنِهِ .
It is narrated from Iyad (may Allah have mercy on him) that he said: I asked Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him): "One of us prays and does not know how many rak'ahs he has prayed (so what is the ruling)?" He said: the Messenger of Allah (peace and blessings be upon him) said: "When one of you prays and cannot tell how much he has prayed, let him perform two prostrations while sitting. And when Satan comes to one of you during his prayer and whispers that you have certainly broken your ablution, let him say: 'You have lied,' unless he smells an odour with his nose or hears a sound with his ear."