Does anyone know what movie this is?

No, I remember it that way too, vividly. It’s not a Twilight Zone episode, it’s a full movie.

ETA: found similar discussions about such a movie here and here.

Seems from that it could be jk124’s suggestion Sole Survivor.

Interesting how many people in those other threads say they were “haunted” by the movie, having seen it as a kid. Me too.

I haven’t had a chance to watch the link yet but I don’t think they knew that they were dead in the movie that I’m thinking of. I sorta kinda of remember being sad when it was revealed. Or not. Memory is a funny thing.

I can’t speak for the OP, but I’m quite certain this isn’t the movie. I’ve seen it at lleast half a dozen times, and there are no ghosts for one thing.

All I remember of Sole Survivor was Bill Shatner ripping his sunglasses off, Horatio Caine style.