Supplication and seeking refuge in God - the Almighty - and seeking help from His power - Glory be to Him - is a good help for the servant to expel obsessions and bad thoughts. Perhaps the most important thing a Muslim can do to repel these obsessions from himself is the following:
Seeking refuge in God from the accursed Satan
Satan is a source of disturbing the peace of a Muslim and bringing sadness and anxiety into his heart. Therefore, a Muslim who suffers from obsessive-compulsive disorder should seek refuge in God frequently from the accursed Satan. Where God Almighty says: (And if any temptation incites you from Satan, seek refuge in God. Indeed, He is the All-Hearing, the All-Knowing). The Lord of the people, the King of the people, is a God people* from the evil of the deceitful whisperer* who whispers in people’s breasts* from heaven and mankind).[2]
Verses to get rid of obsessive thinking
Below are the most prominent verses of legal ruqyah that are suitable for supplication to get rid of obsessions and ward off thoughts that dominate a person’s thinking, with the necessity of conjuring this intention and supplication with the presence of a heart and reverence:
(Praise be to God, Lord of the worlds * The Most Gracious, the Most Merciful * Master of the Day of Judgment * You are we to worship and to You we seek help * guide us to the straight path * the path of those whom You have bestowed upon them, neither those who are angry with them nor those who go astray. [Al-Fatihah]
(God is no god but He is the living neighborhood, and there is no time for him to take it They are their hands and their successors, and they do not surround anything from his knowledge except with what he wanted and the expansion of his chairs, the heavens and the earth, and no one, The Great). [Al-Baqarah: 255]
(God does not cost a soul except for it and its expansion is what you have earned, and it is not upon her what our Lord has gained, and we will not take us. It is on those who are before us, our Lord, and do not carry what we have no energy for us, and forgive us, and forgive us, and we will be forgiven. ). [Al-Baqarah: 286]
(My Lord, expand my breast for me* and make my affairs easy for me* and loosen a knot from my tongue* so that they may understand my speech.) [Taha: 25-28]
(And Job, when he called upon his Lord, “Indeed, adversity has touched me, and You are the Most Merciful of those who show mercy.”) [Al-Anbiya: 83]
(Say: He is God, One. * God, the Eternal, the Eternal. He begot not, nor was He begotten. * And there is no one equal to Him.) [devotion]
(Say, I seek refuge in the Lord of Creation* from the evil of what He created* and from the evil of the darkening when it approaches* and from the evil of blowing at the knots* and from the evil of the envier when he envies). [Al-Falaq]
(Say, I seek refuge in the Lord of mankind* the King of mankind* the God of mankind* from the evil of the deceitful whisperer* who whispers into the hearts of mankind* from Paradise and mankind.) [the people]
Other supplications to expel obsessive thoughts and thoughts
A Muslim can supplicate to his Lord - Glory be to Him - with whatever supplications he wishes with which his heart overflows and is expressed on his tongue. Among the proverbial and unprofessed supplications that a Muslim can supplicate in this section are the following:
(In the name of God, with whose name nothing on earth or in heaven can be harmed, and He is the All-Hearing, the All-Knowing.) [Narrated by Abu Dawud, authentic] three times in the morning and evening.
(I seek refuge in the perfect words of God from His wrath and punishment and from the evil of His servants and from the prodding of the devils and from their presence.) [Narrated by Al-Tirmidhi, Hasan Gharib]
Oh God, I ask you for peace of heart, calmness of thought, and tranquility of the soul, O Lord of the worlds.
Oh God, I seek refuge in You from distraction of mind, distraction of the heart, and preoccupation of thought, O Most Merciful of the Merciful.
Oh God, in your name I call upon you and you, I hope that you will take care of the confusion in my heart, the confusion in my chest, and the whisperings of Satan in my soul, O Most Merciful, O Most Merciful.