As far as the issue of the Obsessive Compulsive Disorder (OCD) is concerned, we implore Allah to help whoever has it get rid of it as soon as possible, aameen.
To deal with this problem a question poses itself; is it normal to feel that one can’t stop such bad thoughts or to be encompassed by tireless worries? Obviously, normal people do not feel so. They may be concerned about certain matter for a while and then their worries would vanish with the disappearance of the cause. So, it seems for us that you need the professional help of a reliable psychiatrist. PLEASE, do not feel shocked when you hear this. Visiting a psychiatrist is by no means equivalent to being insane. There are certain disorders that cause such incessant senseless worries and thoughts which are caused by imbalances in the chemicals of brain. Obsessive Compulsive Disorder causes persistent, senseless, incontrollable, ugly thoughts.
Thus, do not hesitate to seek treatment at the hands of a trustworthy and reliable psychiatrist, preferably a Muslim one so that he would be able to understand and deal with you. Through our work, we encountered persons who experienced such disorders, but they visited a psychiatrist and followed his instructions until Allah granted them cure and health. Actually, the Prophet (peace and blessings be upon him) ordered us to seek therapy and treatment. Imam Ahmad reported that the Prophet (peace and blessings be upon him) said “Seek medication, O slaves of Allah, for Allah has not caused any illness but provided a medicine for it except one illness i.e. old age.”
Also, you are encouraged to try your best to ignore such worries and occupy your time with useful and beneficial activities, reading the Qur’an, seeking knowledge, practicing sports, meeting good friends, reading useful books, etc.
Further, be sure that the suffering you experience is a test form Allah, and that your patience will be of great reward. The prophet (peace and blessings be upon him) said, “No fatigue, nor disease, nor anxiety, nor sadness, nor hurt, nor distress befalls a Muslim, even if it were the prick he receives from a thorn, but that Allah expiates some of his sins for that.”
Finally, and most importantly, you should seek Allah’s help and support, asking Him Almighty to heal you and comfort you. Try to strengthen your relation with Him Almighty, adhering to His commands, and refraining from His prohibitions. In any problem, Muslim should resort immediately to Allah, for He, and He alone, can cure the patient and relieve the distressed. Be confident that He Almighty is the All-Merciful and that if you return to Him He will not let you down.