Allah the Almighty says:
“(And the hypocrites are) on the likeness of the devil when he telleth man to disbelieve, then, when he disbelieveth saith: Lo! I am quit of thee. Lo! I fear Allah, the Lord of the Worlds. And the consequence for both will be that they are in the Fire, therein abiding. Such is the reward of evil-doers.”. (Al-Hashr, 16, 17)
Ibn Masud (May Allah be pleased with him) said: Once upon a time, there was a woman grazing sheep and goats. She had four brothers. She (for some reason) used to spend the night at a monk’s cell. The monk committed adultery with her and she got pregnant. Satan came to him and said: Kill the woman and then bury her for you are a reputable and highly respected man (i.e. don’t risk your own reputation for such a simple woman). The monk killed her and then buried her. Thereupon, Satan visited her four brothers in a dream while they were asleep and said to them: the monk committed adultery with your sister, and because she got pregnant, he killed her and buried her in such-and-such location. In the morning, one of them said: “By Allah! Last night I dreamt of something and I do not know whether to relate it to you or just keep it to myself?” They said: Relate it to us. He did so and one of them said: By Allah! I saw the same dream. Another said the same. And the fourth one said the same thing. They agreed on that there must be something serious about that dream. They went to the king and appealed for his help against the monk. The king’s troops came to arrest him and he was taken away. On the way, Satan came to the monk (and whispered in his ears): I set you up. No one else can save you from this. Prostrate yourself before me just for once and in return, I will save you from this. Thereupon, the monk prostrated himself before Satan. When they presented themselves before the king, Satan said to him: I am free of you! Finally, the monk was killed.
The same story was narrated by the Leader of the Believers, Ali Ibn Abu Talib (May Allah be pleased with him) in another wording. Ibn Jarir said: I was told by Khallad Ibn Aslam, on the authority of An-Nadr Ibn Shamil after Shubah, after Abu Ishaq, after Abdullah Ibn Nahik saying: I heard Ali as saying: A monk worshipped Allah Alone for sixty years. Satan exerted himself to seduce him, but could not. He went to a woman and touched her with evil (maddened her). The woman had brothers whom were visited by Satan who told them to take her to that monk to receive treatment and cure. They took her to the monk and he treated her. Afterwards, she stayed for a while at his cell (house). One day, he was attracted to her and he committed adultery with her. She got pregnant and he killed her (to conceal his first crime). Her brothers came (after knowing the matter) and Satan appeared again for the monk and said: I am your friend, I did not find a solution or way to mislead you, but (finally) I set you up. So, obey me and I will save you from this. Prostrate yourself before me and you will be saved. The monk did so. Then, Satan said: “I am free of you, I fear Allah, the Lord of The Alamin (mankind, jinn and all that exists)!”. (Al- Hashr ,16)
This is the interpretation of Allah’s Saying: (And the hypocrites are) On the likeness of the devil when he telleth man to disbelieve, then, when he disbelieveth saith: Lo! I am quit of thee. Lo! I fear Allah, the Lord of the Worlds. (16) And the consequence for both will be that they are in the Fire, therein abiding. Such is the reward of evil-doers. (Al-Hashr, 16, 17)
Allah the Almighty says: