The world will last for 6,000 years: 2,000 years of desolation, 2,000 years of Torah, and 2,000 years of the days of the Messiah. In the seventh millennium, the world will be rebuilt in glory.

-Seder Olam Rabbah, Chapter 1