The Twilight Zone episode “The Shelter” comes to mind.
The Shelter (Part 2 of 3)
Or Noah’s Ark. People were laughing and having a great time mocking Noah, until the water began to rise’ and the ark door was closed. That particular Twilight Zone episode is one of the many great ones.