I mean traditional African societies, a good man/ woman knows no rest even in death. The dead person’s spirit is expected to watch over the community and protect it from calamity.
And the bad man dies completely. Children don’t get their names. They don’t get invoked in times of calamity or joy. They die to the community.
In short, if you want to live long, be good. A good person is one who is useful to the community.