Deuteronomy 7:2
1 When the Lord your God brings you to the land that you are going to occupy and forces out many nations before you—Hittites, Girgashites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites, seven nations more numerous and powerful than you— 2 and he delivers them over to you and you attack them, you must utterly annihilate them. Make no treaty with them and show them no mercy! 3 You must not intermarry with them. Do not give your daughters to their sons or take their daughters for your sons, 4 for they will turn your sons away from me to worship other gods. Then the anger of the Lord will erupt against you and he will quickly destroy you.
Zechariah 14:11
9 The Lord will then be king over all the earth. In that day the Lord will be seen as one with a single name. 10 All the land will change and become like the rift valley from Geba to Rimmon, south of Jerusalem. Jerusalem will be raised up and will stay in its own place from the Benjamin Gate to the site of the First Gate and on to the Corner Gate, and from the Tower of Hananel to the royal winepresses. 11 And people will settle there, and there will no longer be the threat of divine extermination—Jerusalem will dwell in security. 12 But this will be the nature of the plague with which the Lord will strike all the nations that have fought against Jerusalem: Their flesh will decay while they stand on their feet, their eyes will rot away in their sockets, and their tongues will dissolve in their mouths. 13 On that day there will be great confusion from the Lord among them; they will seize each other and attack one another violently.
Notes and References
"... The book of Zechariah calls the postexilic inhabitants of Judah to repent and renew their relationship with YHWH. The second half of the book concludes with a glorious picture of the coming day of YHWH and his defeat of Jerusalem’s enemies. The nations will gather against Jerusalem to besiege it, but YHWH will fight for them as “he fights on the day of battle” (Zechariah 14:3). He will stand on the Mount of Olives and split it into two when he comes with his holy ones (Zechariah 14:4–5), recalling Ezekiel’s description of the departure of YHWH from Jerusalem to stand “on the mountain that is to the east of the city” (Ezekiel 11:23) and his prophecy that YHWH would return from the east in the future (Ezekiel 43:2). The natural disturbances continue with the lack of cold or frost (Zechariah 14:6). The coming of YHWH will cause living water to flow from Jerusalem and bring life to the surrounding lands (Zechariah 14:8). YHWH will reign as king over the earth, and all nations will recognize that he alone is God (Zechariah 14:9), a reference to the Shema (Deuteronomy 6:4). A decree will never be declared over the land, as no Canaanite will live in the land. Unlike the time of the judges, the people would no longer act like Canaanites but would follow YHWH (Zechariah 14:11, 21). YHWH would strike the enemies of Jerusalem with a plague and throw them into a panic, causing them to bring their wealth to Jerusalem (Zechariah 14:12–14). All the nations that had fought Jerusalem would now come to worship YHWH the king at Jerusalem; those who do not will die by the plague (Zechariah 14:16–19) ..."
Trimm, Charlie "YHWH Fights for Them!": The Divine Warrior in the Exodus Narrative (pp. 33-34) Gorgias Press, 2014