As further evidence the destruction of nations is based on sin, we see this same thing happening to Israel.
Israel eventually followed the ways of the Canaanites and also sacrificed their babies to idols.[Deu 32:17 KJV] 17 They sacrificed unto devils, not to God; to gods whom they knew not, to new [gods that] came newly up, whom your fathers feared not. [Psa 106:37 KJV] 37 Yea, they sacrificed their sons and their daughters unto devils,
Even Solomon fell and sacrificed to Molech.[1Ki 11:7-9 KJV] 7 Then did Solomon build an high place for Chemosh, the abomination of Moab, in the hill that [is] before Jerusalem, and for Molech, the abomination of the children of Ammon. 8 And likewise did he for all his strange wives, which burnt incense and sacrificed unto their gods. 9 And the LORD was angry with Solomon, because his heart was turned from the LORD God of Israel, which had appeared unto him twice,
Ahaz also sacrificed to idols.[2Ki 16:2-3 KJV] 2 Twenty years old [was] Ahaz when he began to reign, and reigned sixteen years in Jerusalem, and did not [that which was] right in the sight of the LORD his God, like David his father. 3 But he walked in the way of the kings of Israel, yea, and made his son to pass through the fire, according to the abominations of the heathen, whom the LORD cast out from before the children of Israel.
Manasseh also sinned.[2Ch 33:1-2, 6 KJV] 1 Manasseh [was] twelve years old when he began to reign, and he reigned fifty and five years in Jerusalem: 2 But did [that which was] evil in the sight of the LORD, like unto the abominations of the heathen, whom the LORD had cast out before the children of Israel. … 6 And he caused his children to pass through the fire in the valley of the son of Hinnom: also he observed times, and used enchantments, and used witchcraft, and dealt with a familiar spirit, and with wizards: he wrought much evil in the sight of the LORD, to provoke him to anger.
As a result of the sins of Israel, God rose up Gentile nations to judge Israel.[Eze 9:4-5 KJV] 4 And the LORD said unto him, Go through the midst of the city, through the midst of Jerusalem, and set a mark upon the foreheads of the men that sigh and that cry for all the abominations that be done in the midst thereof. 5 And to the others he said in mine hearing, Go ye after him through the city, and smite: let not your eye spare, neither have ye pity: [Amo 2:4-7 KJV] 4 Thus saith the LORD; For three transgressions of Judah, and for four, I will not turn away [the punishment] thereof; because they have despised the law of the LORD, and have not kept his commandments, and their lies caused them to err, after the which their fathers have walked: 5 But I will send a fire upon Judah, and it shall devour the palaces of Jerusalem. 6 Thus saith the LORD; For three transgressions of Israel, and for four, I will not turn away [the punishment] thereof; because they sold the righteous for silver, and the poor for a pair of shoes; 7 That pant after the dust of the earth on the head of the poor, and turn aside the way of the meek: and a man and his father will go in unto the [same] maid, to profane my holy name: [Isa 10:1-2, 5-6 KJV] 1 Woe unto them that decree unrighteous decrees, and that write grievousness [which] they have prescribed; 2 To turn aside the needy from judgment, and to take away the right from the poor of my people, that widows may be their prey, and [that] they may rob the fatherless! … 5 O Assyrian, the rod of mine anger, and the staff in their hand is mine indignation. 6 I will send him against an hypocritical nation, and against the people of my wrath will I give him a charge, to take the spoil, and to take the prey, and to tread them down like the mire of the streets.