"And yet even this" (Leviticus 26:44): this is the sin of the wilderness. "Even" comes to include the sin of Baal Peor and the kings of the Amorites. "When they are in the land of their enemies, I will not reject them, nor will I abhor them, to destroy them" (Leviticus 26:44). But what remained to them? Were they not rejected and abhorred, and were not all the good gifts taken from them? Were it not for the Torah scroll that remained to them, they would not be different from the nations of the world. Rather: "I did not reject them" in the days of the Chaldeans, "nor did I abhor them" in the days of the Greeks, "to destroy them" in the days of the Romans. "To break My covenant with them" — in the war of Gog and Magog. "I am the LORD their God" — in the time to come.
Why God Never Abhors Israel Among the Chaldeans Greeks and Romans
Midrash Aggadah, Leviticus 26:44
ואף גם זאת. זה עון המדבר אף לרבות עון בעל פעור מלכי האמורי: בהיותם בארץ אויבהם לא מאסתים ולא געלתים לכלותם. וכי מה נשתייר להם, והלא נמאסו ונגעלו, וכל מתנות טובות ניטלו מהם, אילולי ספר תורה שנשאר להם, לא היו משונים מאומות העולם, אלא לא מאסתים בימי כשדים, ולא געלתים בימי יונים, לכלותם בימי רומיים. להפר בריתי אתם, במלחמת גוג ומגוג: אני ה' אלהיהם. לעתיד לבוא: