Hi, I made an account just to respond to this thread.
I am no expert on OCD, but I do not believe religion is the ultimate source of it. However, I know religion caused many problems for me with mine.
I was Christian and mostly not too worried about anything. I thought I was a good person and didn't worry about hell most of the time. But occasionally it would be all I could think about. I just knew I was going to hell, and felt so bad about it because everyone else seemed so good. I would start obsessing over things like watching tv (thinking it was bad), trying to stop but then doing it anyway.
For a couple of years I got deeper and deeper into Christian extremism, towards the end believing that probably 99.9999% of people were going to hell (and once again obsessing about it). I believed a wacko extremist who had a website about the evils of the modern world. I would share the link but I don't want anyone else to fall in that trap. I know it was ultimately my fault for believing all that BS but I still hate the author of the website for planting those seeds.
Anyway, I overanalyzed what the Bible said (because you can make it say anything you want to) so I believed anything someone said if it had a Biblical basis. I would obsess over it all the time.
I never thought I felt bad enough about what I did to be forgiven, and I obsessed trying to feel bad constantly.
To me it was interesting (yet extremely irritating) that the time I worried most about saving myself from hell was when I was on vacation or trying to spend time with family. That was when I would obsess the most, and it was so irritating because I couldn't just relax and have fun on a vacation. It also happened much of the time when I knew I had a lot of work to do.
One time while my mom and brother were on vacation and I was staying at home with my dad trying to get caught up on schoolwork, I had an attack--I thought I was hearing the voice of God. It really didn't sound different from my own thoughts, but if I didn't do what the voice told me to, my mom or my brother would die. The voice told me to do incredibly weird things all day long. It told me to hold my arm a certain uncomfortable way. It told me not to use a towel. It told me I couldn't face the TV. I didn't always do the things the voice asked me to, and no punishment seemed to happen, however I still thought something might happen if I didn't do what it said.
I couldn't explain this to my dad because I thought he wouldn't understand. At the time I didn't realize it was OCD. Some of the time I just thought it was my brain (I have always struggled with uncontrollable thoughts like those), and sometimes I thought it really was a divine voice. It was one of the worst weekends of my entire life.
I could go on and on about the crazy stuff I obsessed over. I'm sure I'm not the only one who has done this, but looking back on it it's hard to believe I did. But I know it was the results of my OCD.
Finally I found Christian Universalism and believed it was supported by the Bible. Mostly my OC problems with Christianity went away at that point. The fear of hell was gone. But I still felt I couldn't win God's favor. Now I have completely given up Christianity and lately I have not been OC about faith at all. I think religion wasn't really right for me anyway, since I'm gay.
I would like to say I don't think religion is the source of all OCD. I know some of my habits were not related to religion at all... such as obsessive hand-washing (my hands are still always scaly looking :(), feeling the need to always be right, keeping the house perfect, etc
BTW for anyone who has OC problems with the idea of hell I would strongly recommend checking out http://www.tentmaker.org/
. It is a website about Christian Universalism. I believe CU has a strong basis in the Bible (despite what many think) and it is further explained on that site. I am not a Christian anymore but I would recommend it to anyone who is and is struggling with hell. IIRC there is even a testimony from someone who has OCD and went through a similar experience to mine.