Sexual thoughts about God, and other repetitive intrusive and distress causing thoughts or actions - points to a diagnosis of OCD - Obsessive Compulsive disorder
It is treatable with a combination of counselling- CBT and medications.
SSRI can work well with certain patients but the decision to start a certain group of meds should be left to a psychiatrist.
Psychiatric medications are NOT provided OTC at any pharmacy, it is strongly advisable that you get in touch with a psychiatrist, who will start treatment after taking an in depth history
Next Steps
Kindly contact a psychiatrist and depending on your history, current severity of depressive, obsessive and anxiety issues will start you on treatment