What’s the name of the movie/show where (possible spoiler if you also read the answer) in the end they go through a portal to some other “heavenly” world, but in fact as they do they (knowingly and willingly) die and their dead bodies just pile up on the other side?

I know this is probably super vague, but it popped up in my head and I figured Reddit would know. I wanna say maybe the portal was on the edge of a cliff too, so their lifeless bodies just fell from there after they passed through?