Darrel Ray said this quote

Treating depression often requires that a patient identifies and changes self-defeating thinking. Identifying religion as the problem is especially difficult, since people often retreat to religion to deal with their depression. In reality, however, while religion promises peace and fulfillment, it often creates more of what caused the depression in the first place.