The school of Eliyahu (Elijah) taught: Six thousand years is the duration of the world. Two thousand of the six thousand years are characterized by chaos; two thousand years are characterized by Torah, from the era of the Patriarchs until the end of the mishnaic period; and two thousand years are the period of the coming of the Messiah. Six thousand years is the duration of the world, and it is in ruins for one thousand years. The duration of the period during which the world is in ruins is derived from a verse, as it is stated: “And the Lord alone shall be exalted on that day” (Isaiah 2:11). That is the course that history was to take, but due to our many sins, the Messiah did not come after four thousand years passed, and furthermore, the years that elapsed since then, which were to have been the messianic era, have elapsed.

-Sanhedrin.97a.14, 97a.12, 97b.01