How Many Fought Against Avraham Avinu and How Many Will Fight Alongside Gog?
Sanhedrin 95b (Daf | Text | English):
The Maharsha asks on the wording "attacked Avraham", which the Torah doesn't mention - it only mentions the idea that the 4 kings attacked the 5 kings and then Avraham chased after them! Rather, suggests the Maharsha, after that occurred, the 4 kings wanted revenge against Avraham and attacked him with a huge force of men, and still Avraham prevailed against them.אמר רב יהודה אמר רב בא עליהם סנחריב הרשע בארבעים וחמשה אלף איש בני מלכים יושבים בקרונות של זהב ועמהן שגלונות וזונות ובשמנים אלף גבורים לבושי שריון קליפה ובששים אלף אחוזי חרב רצים לפניו והשאר פרשים וכן באו על אברהם וכן עתידין לבוא עם גוג ומגוגRab Judah said in Rab's name: The wicked Sennacherib advanced against them13 with a force consisting of forty-five thousand princes, each enthroned in a golden chariot and accompanied by his ladies and harlots, eighty thousand warriors in coat-of-mail, and sixty thousand swordsmen of the front line, the rest cavalrymen. A similar host attacked Abraham ,14 and a like force will accompany Gog and Magog.15
The Maharsha adds that all 3 wars are grouped together as they are very similar in that there were minuscule odds of winning as it was the very many against the very few and nevertheless Hashem made a wondrous miracle. Avraham was only with 318 others and some say it was with just Eliezer. The same with Hizkiya - the numbers were impossible, were it not for the angel of Hashem smiting them in one fell swoop. And again, during the Gog Umagog War, Gog will come with extremely large numbers, and Israel will be at the epitome of lowliness, but nevertheless, Hashem will redeem Israel with amazing miracles.