367. If any sin occurred
Narrated by Ali ibn abu Talib: Abu Bakr narrated to me a hadith, and Abu Bakr narrated it truthfully. He said: I heard the Messenger of Allah (ﷺ) saying: When a servant (of Allah) commits a sin, and he performs ablution well, and then stands and prays two rak'ahs, and asks pardon of Allah, Allah pardons him. He then recited this verse: And those who, when they commit an immorality or wrong themselves [by transgression], remember Allah and seek forgiveness for their sins - and who can forgive sins except Allah? - and [who] do not persist in what they have done while they know. Those - their reward is forgiveness from their Lord and gardens beneath which rivers flow [in Paradise], wherein they will abide eternally; and excellent is the reward of the [righteous] workers.(Surah Al 'Imran 3: 135-136)
Related Duas:
Dua for expelling the devil and his whisperings #3
Seeking refuge from the devil when leaving the mosque
Satan's enmity towards the newborn
Prayers and answers for the father of the newborn #1
Dua upon hearing the crowing of a rooster, the braying of a donkey or the barking of a dog at night
When you enter the mosque, seek refuge from the devil #1
If afflicted with doubt in one's faith #3
If something unpleasant happens
Praying to Allah for refuge from the evil of something
Dua for expelling the devil and his whisperings #1
When faced with a difficult matter
Dua when afflicted by whisperings of the devil in prayer or recitation