You don’t need any religion for a “moral compass”, but basic ethical principles.
For the most time religions were (and are still) used as a means of power to either suppress your own population (see most islamic countries today) or divide people and justify wars (see catholics and protestants / orthodox in the past).
Countless people were killed in the name of some “religion”.