The Sages taught in a baraita: With regard to the seven-year period, i.e., the Sabbatical cycle, during which the Messiah, son of David, comes: During the first year, this verse will be fulfilled: “And I will cause it to rain upon one city and cause it not to rain upon another city” (Amos 4:7). During the second year of that period, arrows of famine will be shot, indicating that there will be famine only in certain places. During the third year there will be a great famine, and men, women, children, the pious, and men of action will die, and the Torah is forgotten by those who study it. During the fourth year there will be plenty but not great plenty. During the fifth year there will be great plenty and they will eat, and drink, and rejoice, and the Torah will return to those who study it. During the sixth year, heavenly voices will be heard. During the Sabbatical Year, wars, e.g., the war of Gog and Magog, will be waged involving the Jewish people. During the year after the conclusion of the Sabbatical Year, the son of David will come.

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.

God said to Moses: ‘Command the children of Israel and say to them, My appointed times (moed) shall you keep as My covenant forever.’ (Leviticus 23:2) This is to teach you that the calendar and its festivals are set by the divine order and should not be tampered with. Do not look into or follow the calculations of those who stray from this path, for their times are not aligned with the divine will. Just as I have sanctified the Sabbath, so have I sanctified the months and the festivals for you.