Muhammad's response to the man(below) sounds very positive, but it is difficult to tell whether the man is being healed from his affliction, or just encouraged. Or perhaps could it be that Muhammad is just making a statement about Satan, as a warning, or to teach his followers?
Also, are we to understand that the man has a demon, or could he simply have OCD?
(And so We have appointed for every Prophet enemies -- Shayatin among mankind and Jinn, inspiring one another with adorned speech as a delusion.) (6:112) Imam Ahmad recorded that Ibn 'Abbas said, "A man came to the Prophet and said, 'O Messenger of Allah! Sometimes I say things to myself that I would rather fall from the sky than say (aloud openly). ' The Prophet said,
(Allah is Most Great! Allah is Most Great! All praise is due to Allah Who sent his (Shaytan's) plot back as only a whisper.)'' Abu Dawud and An-Nasa'i also recorded this Hadith.
Tafsir ibn Kathir, Sura 114 -- At the bottom of the page