What time frame?
I suppose in the pre-Christian days, tribal religions might have had some use.
Pre-Christian era is when things went downhill. Christ wasn’t helpful at all, and the Council of Nicaea made things worse by ‘crystallizing’ Christianity. Things went badly from there. Crusades 900 years later with Catholics killing just about everyone. And then the various Muslim invasions in the Middle East and Europe.
Jump ahead to the twentieth century where there is/was a religious impetus to almost every war that took place. (except Grenada)
Bottom line: religion may have some value for individuals who need a belief system, but for humanity it hasn’t been all that great.