Good people act in good ways because that is who they are. They don’t need a religious context to act in good ways. They don’t engage in weighing the potential afterlife consequences when making an ethical decision.
I have never known religion to stop less than good people from acting in selfish, greedy, unlawful, spiteful, malicious, unkind or any other non-god ways. I lost track of how many Christian televangelists, ministers, politicians and community members have stood before podiums shedding crocodile tears announcing that they have sinned and are so very very sorry for that. They promise changes and being more God like….but their behavior never changes