The Talmud records Amora'ic debates about the war of Gog and Magog as a real future event preceding the Messianic era, including the famous statement that one who suffers intensely in his lifetime may be spared its tribulations — indicating a concrete, physical war but one with spiritual dimensions of purification.
תָּנוּ רַבָּנַן: שָׁבוּעַ שֶׁבֶּן דָּוִד בָּא בּוֹ, שָׁנָה רִאשׁוֹנָה מִתְקַיֵּים מִקְרָא זֶה ״וְהִמְטַרְתִּי עַל עִיר אֶחָת וְעַל עִיר אַחַת לֹא אַמְטִיר״. שְׁנִיָּה, חִיצֵּי רָעָב מִשְׁתַּלְּחִים. שְׁלִישִׁית, רָעָב גָּדוֹל, וּמֵתִים אֲנָשִׁים וְנָשִׁים וָטַף, חֲסִידִים וְאַנְשֵׁי מַעֲשֶׂה, וְתוֹרָה מִשְׁתַּכַּחַת מִלּוֹמְדֶיהָ. בִּרְבִיעִית, שׂוֹבַע וְאֵינוֹ שׂוֹבַע. בַּחֲמִישִׁית, שׂוֹבַע גָּדוֹל, וְאוֹכְלִין וְשׁוֹתִין וּשְׂמֵחִין, וְתוֹרָה חוֹזֶרֶת לְלוֹמְדֶיהָ. בְּשִׁשִּׁית, קוֹלוֹת. בִּשְׁבִיעִית, מִלְחָמוֹת. בְּמוֹצָאֵי שְׁבִיעִית, בֶּן דָּוִד בָּא. אָמַר רַב יוֹסֵף: הָא כַּמָּה שָׁבוּעֵי דַּהֲוָה כֵּן, וְלָא אֲתָא! אָמַר אַבָּיֵי: בְּשִׁשִּׁית קוֹלוֹת, בִּשְׁבִיעִית מִלְחָמוֹת – מִי הֲוָה? וְעוֹד, כְּסִדְרָן מִי הֲוָה?
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. Rav Yosef said: Haven’t there been several Sabbatical cycles during which events transpired in that manner and nevertheless, the Messiah did not come? Abaye said: Have the phenomena: During the sixth year, heavenly voices, and during the Sabbatical Year, wars, transpired? And furthermore, have all these phenomena transpired in the order in which they were listed in the baraita?