Another interpretation: Just as the expounder comes and expounds, and the amora (the one who speaks out) speaks before him, so too "You shall speak everything that I command you, and Aaron your brother shall speak to Pharaoh" (Exodus 7:2). "They were the ones who spoke to Pharaoh" etc. (Exodus 6:27). The Holy One, blessed be He, said: In this world I exacted retribution from Egypt through ten plagues, and in the world to come thus will I exact retribution from Gog, as it is said, "And I will enter into judgment with him with pestilence and with blood; and torrential rain and hailstones, fire and brimstone" etc. (Ezekiel 38:22).
Moses, Aaron, and the Ten Plagues as a Sign of Gog's Judgment
Midrash Tanchuma Buber, Vaera 10:1
ד"א כשם שהדורש יבא ודורש והאמורא אומר לפניו, כך אתה תדבר (אל) [את] כל אשר אצוך ואהרן אחיך ידבר אל פרעה (שמות ז ב), הם המדברים אל פרעה וגו' (שם ו כז), אמר הקב"ה בעולם הזה פרעתי ממצרים בעשר מכות, ולעולם הבא כך אני פורע מגוג, שנאמר ונשפטתי (אותו) [אתו] בדבר ובדם וגשם שוטף ואבני אלגביש אש וגפרית וגו' (יחזקאל לח כב).