IN-22
What to say and do if you commit a sin .
There is not any slave of Allah who commits a sin, then he perfects his ablution and stands to pray two Rak'ahs of prayer, then seeks Allah's forgiveness, except that Allah will forgive him.
Reference:
Abu Dawud 2/86, At-Tirmithi 2/257. Al-Albani graded it authentic in Sahih Abu Dawud 1/283
Invocations against the Devil and his promptings
Seeking refuge with Allah against him (i.e. by saying I seek refuge in Allah from Satan the outcast).
Reference: Abu Dawud 1/206, At-Tirmithi. See also Al-Albani, Sahih At-Tirmithi 1/77, and Surat Al-Mu'minun, 23:98-9.
The call to prayer - 'Athan.
Reference: Muslim 1/291, Al-Bukhari 1/151.
Saying words of Allah's remembrance (Thikr) and recitation of the Qur'an.
Reference: "Do not turn your homes into graveyards, surely the Devil flees from the house in which Surat Al-Baqarah is read," Muslim 1/539. The Devil is also driven out by the invocations for morning and evening, those that are said before sleeping and upon waking up, those for entering and leaving the house, including those for entering and leaving the mosque, and by many other authentic invocations taught to us by the Prophet (SAW) such as the reading of 'Ayatul-Kursi, (Al-Baqarah 2:255), and the last two 'Ayat of Surat Al-Baqarah before going to sleep. Whoever says: "There is none worthy of worship but Allah alone, Who has no partner, His is the dominion and His is the praise, and he is Able to do all things," one hundred times, it will be a protection for him from the Devil throughout the day