I need help finding an old film. What I remember of it is this

A man dies (I think he died whilst shaving) but then wakes up in a world where everyone except him has gone. He searches for others and eventually finds a woman. They fall in love (not a lot of choice tbf) but they then find another man and she falls for him. The first man then tries to get rid of the second guy.

Any ideas? I know it’s not much to go on 🙂

Question is closed for new answers.
Selected answer as best