Live a good life.I really liked the passage above, but there is one problem with it. It assumes that if there is a God, that there is an afterlife, and that if there is no God, then there is no afterlife. Neither assumption is necessarily true. See also: It's not as bad as you think
If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by.
If there are gods, but unjust, then you should not want to worship them.
If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones. - author unclear