When was the first prediction for the end of the world?

Ancient civilizations had end of world predictions. They go back quite a long way in human history.