"The Righteous Mind" by Johnathan Haidt. Technically it's not just about religion, it's about the psychology of righteousness, but it's clearly related. My review of it: https://www.goodreads.com/review/show/829796352
Not sure if it counts as psychology of religion, but "Orthodoxy" by Gilbert Keith Chesterton is something not to be missed if you are looking for one of the finest works of christian philosophy in XX century.
some quotations here https://en.wikiquote.org/wiki/Orthodoxy_(book). Quotations from the chapter I, "Introduction in Defense of Everything Else", might be exactly what you are looking for.
I say this was great humility, but unfortunately the majority of books recommended here are naive perspectives of religion—with the one exception being the recommendation of C.S. Lewis.
If you want to understand the psychology behind religion I recommend Wittgenstein's "Remarks on Frazer's Golden Bough"; Eliade's "Myths, Dreams, and Mysteries" and "The Sacred & Profane"; Feuerbach's "The Essence of Religion"; Gertz's "The Religion of Java" and "The Interpretation of Cultures"; and no anthology of introduction to religion would be complete without Ricouer's "Hermeneutics and the Human Sciences".
An amazing excerpt from Eliade details the Tjilpa people orientating their small tribe around this sacred gum tree, until one day the tree breaks, the Tjilpa people then "wandered around aimlessly for a time, and finally [laid] down on the ground together and waited for death to overtake them".
I read CS Lewis' Mere Christianity, expecting something impressive, given its huge reputation. Nuh-uh. The crux of his argument, astoundingly, was nothing more than "Either Jesus was who he said he was, or he was mad. Therefore he was who he said he was." It was embarrassing.
William James -
The Varieties of Religious Experience.
Possibly the classic about this subject ("'Varieties of Religious Experience' now stands as such a masterly investigation of the psychology of individual theologies, that his other works tend to be rather pushed to one side. ").
This is a study of the psychology of original religious experiences, not religious institutions. Religious geniuses have often shown nervous instability, such as George Fox or St Theresa. Medical materialism, sexual origins refuted. Perhaps the neurotic temperament is best to receive religious inspiration.
our morality appears as a plaster hiding a sore it can never cure, and all our well-doing as the hollowest substitute for that well-being that our lives ought to be grounded in, but, alas! are not.
I have been interested in why humans believe in religion ever since watching this discussion[2]. This course is absolutely amazing and it even features content from individuals outside of religious studies, including Jordan Peterson and Jonathan Haidt. Each video contains lectures or interviews from experts on each respective subject in the course. Talking about the building block theory of religion? The course features the lady who invented it. Talking about data science in religion? The course features the researcher in charge of the largest religious database in the world. I think this course is a model for how online courses ought to be. And yes, it absolutely gets into the psychology involved.
Maybe a bit less orthodox (no pun intended) than the rest of the recommendations, but Peter Hintjens in "Social Architecture" describes very well the differences between cults and groups of virtuous people.
And more importantly, the mechanics of how you are more likely to join a cult in moments of weakness.
The Evolution of God by Robert Wright is a good read. I think it’s important to understand morals/religion in historical context, and Wright does a great job of adding this context and how religion has developed over the centuries.
Kierkegaard's "Fear and Trembling" and "Either/Or"are hard slogs, but worth it, if you like thinking about essential paradoxes, psychological responses to existentialism, and the like.
Jordan Peterson is a psychology professor from Canada who has become a somewhat divisive/controversial political figure during the last 2 years, but he has been uploading video lectures about exactly these topics for a long time.
I haven't gotten around to watching them yet (4.5 hours total) but they're supposed to be pretty interesting. The topic of the debate, as I understand it, is roughly whether religion or religious beliefs have any utility from an evolutionary/fitness perspective and/or to what degree could/should we try to objectively evaluate religious/ethical beliefs. Peterson is a clinical psychologist so he's coming to the debate from that angle.
One thing to be aware of is that there’s a lot of polarization around Peterson’s material. I’d recommend sticking to his long-form material (presentations/podcasts) on YouTube rather than the many clickbait videos that’ll be recommended.
Actually Jordan Peterson's early work (2010) was what prompted me to post. I agree with the other commenter, though, he seems to have become a sellout and purposely makes his more recent speeches more polarizing.