Rabbi Elazar bar Avina said: If you see kingdoms clashing with one another, you should anticipate the coming of the Messiah. You may know that it is so, as in the days of Abraham, as a result of the kingdoms clashing with one another, redemption came to Abraham.
(translation of Midrash Breishit Rabba 42:4 by https://www.sefaria.org.il/Bereshit_Rabbah.42.4?lang=bi )
(translation of Midrash Breishit Rabba 42:4 by https://www.sefaria.org.il/Bereshit_Rabbah.42.4?lang=bi )
See also the related post: Rabbi Yitzchak: “The year that Messiah is revealed, Persia (in our days, Iran) destroys the world and there is great fear in Israel”