Prayer (Kitab Al-Salat): Details of Commencing Prayer
Dawud :: Book 3 : Hadith 1024
Narrated AbuSa'id al-Khudri:
The Prophet (peace_be_upon_him) said: When one of you prays, and he does not know whether he prayed more or less rak'ahs (than those prescribed by the Shari'ah), he should perform two prostrations while he is sitting. If the devil comes to him, and tells him (suggests him): "You have been defiled," he should say: "You have told a lie," except that he feels smell with his nose, or sound with his ears (then his ablution will break). These are the wording; of the tradition reported by Aban.