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."
Hadith Referenceمسند أبي يعلى الموصلي / من مسند أبي سعيد الخدري / 1241
Hadith Takhrij«قال سعيد بن محمد السناري: صحيح: دون الجملة الأخيرة: مضى الكلام عليه [برقم 1141]» «أخرجه سنن الترمذي برقم: 396، وأخرجه سنن النسائي برقم: 1238، 1239، وأخرجه سنن أبي داود برقم: 1024، 1026، 1029، وأخرجه سنن ابن ماجه برقم: 1204، 1210، وأخرجه مسند أحمد برقم: 10698، وأخرجه سنن الدارمي برقم: 1495، وأخرجه فتح الباري برقم: 1168، 1174، وأخرجه المستدرك على الصحيحين برقم: 476، 1242، 1250، وأخرجه صحيح ابن خزيمة برقم: 29، وأخرجه المعجم الكبير للطبراني برقم: 5440، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 1249، وأخرجه صحيح ابن حبان برقم: 2665، مسند ابویعلیٰ ترقیم الاثری: 1236»