It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Prophet of Allah (peace and blessings be upon him) said: "Satan comes to one of you, takes hold of a hair of his backside (the place from which wind passes) and pulls it, so that he thinks his ablution has been broken. So let him by no means turn away (from the prayer) until he hears a sound or perceives a smell."
Imam Abu Ya'la al-Mawsili (may Allah have mercy on him) also narrated it through his chain.
I say: Imam Ibn Majah (may Allah have mercy on him) narrated only the last part of this hadith, "So let him not turn away", without mentioning the rest of the wording, by way of Imam al-Zuhri (may Allah have mercy on him), from Sa'id bin al-Musayyib (may Allah have mercy on him), from Sayyiduna Abu Sa'id (may Allah be pleased with him).
Imam Ibn Hibban (may Allah have mercy on him) also narrated it in his "Sahih" by way of Ma'mar bin Rashid and Hisham, both of them from Yahya bin Abi Kathir (may Allah have mercy on him), from Iyad bin Hilal (may Allah have mercy on him), from Sayyiduna Abu Sa'id (may Allah be pleased with him), that the Prophet (peace and blessings be upon him) said: "When Satan comes to one of you and says: You have certainly become without ablution, let him say within himself: 'You have lied' (and continue his prayer), until he hears a sound with his ear or perceives a smell with his nose."