It seems to me religion can be of benefit to society when it promotes positive virtues such as love, compassion and justice. People can be motivated to contribute to the betterment of the world and undertake charity. Of course religion isn't necessary for any of this, but for some people it can bring out the best in them.
On the other hand religion can harmful. It can promote division, intolerance, fanaticism and hatred. It can even contribute to wars.
I don't want to single out any one religion or set of religions as I believe we are talking about elements in all the main world religions. The allegedly harmful ones can promote great good and those that are supposedly peaceful have also been implicated in conflict and violence.
Religion is a two-edged sword. How, when and by whom it's wielded - and in which battles - determines its impact on humanity, from individually to globally. I think the challenge here is to take what's spiritually helpful from religion and recognize the rest for what it is: a set of rituals and dogmas that reflect more the culture, biases and agendas of its creators than some absolute, cosmic truth. Religion attempts to reduce God to something that our limited minds can conceptualize, and that our hearts will be comforted by. It personifies God and give him\her\them\it human traits: the desire for obedience, praise, worship, love, faithfulness and so on, when in reality we haven't the foggiest notion of what any God(s) that created the entire Universe is\are actually like.
Recognizing the limitations and contradictions of religion, empowers us to seek for spiritual truths that come from within, instead of regurgitating the truths, half-truths and downright lies of others, writing, preaching and speaking to us from without. Through concentration, meditation and contemplation we can tread a journey towards Divinity (if Divinity exists) that is uniquely ours - and wield the results in ways that empower not just ourselves but others. If, at the end of the day, our religious practice hasn't resulted in us making a positive contribution to the lives of others, then it has failed us... or we have failed to live up to it's highest ideals. For example, "Love ye one another" is the Second GREAT Commandment of Christianity. If we were to do ONLY that, wouldn't the world be radically spiritually transformed?
The problem is that such love cannot be commanded or created on-demand. It can only come from a spiritual connection with the world, that is not easy to come by. We can memorize all the scriptures, sing the hymns, pay the tithes and offerings, get baptized... do all that religion asks of us, but that doesn't mean that the suffering of another human being thousands of miles away - or even next door, will be felt as if we loved them as ourselves.
In the Bible, it says "Be still and know that I am God' It doesn't say to go to church or follow religious practices. It says "be still". What would that "stillness" look like? How can we create it within ourselves? In another part of the Bible, God tells Joshua to " Keep this
Book of the
Law always on your lips;
meditate on it day and night, so that you may be careful to do everything written in it. Doesn't this also suggest that there is something we need to do within ourselves.. something that might start with religion (reading the Book of Law) but must lead to a deeper process (meditating on the book of law).
I think religion works best for us, when we see it as a signpost pointing towards spiritual truths, instead of the end of the journey.