So this turned into a bit of a rant and while it’s likely nobody cares I’ll post it anyway.
I don’t know about Christianity but at least in Islam this isn’t how it works. So there’s a hadith that says that death is the worst of what comes before it and the easiest of what comes after it, because the day of judgement is just that bad. There’s another that says that in the day of judgement it will be so hard that people will want Allah to start it even if they go to hell. No matter how much you think you’ve been a good person it’s not at all something to look forward to. And that’s not counting how even as a Muslim depending on what you did in your life, you could go to hell, spend a certain time there according to your sins in life and then go to heaven. Again not something most people want to find out, especially because Islam teaches that with the exception of prophets everyone sins and that we all need Allah’s forgiveness and mercy to go to heaven. The kind of arrogance it’d take to actually hope for death because you’re confident you’re going to heaven can in fact be the reason you go to hell. A devout Muslim will never think “oh I’ve been really good in life I can’t wait to die and go to heaven”.
Then we get into how in the day of judgement people will have mountains of good deeds and mountains of bad deeds and people’s (temporary; again all Muslims will eventually go to heaven) fate will be decided over a single good or bad deed. Most people thinking seriously about the afterlife will want to live as long as possible to do good deeds and beg god for forgiveness for their bad deeds. Again, no sane Muslim will think “yep, I’m doing alright, death please”.
Why did they even do that?