God Removes Nations For Their Sins

Calvin on Deuteronomy 27 and 28:

First we see that even though the land of Canaan was given
as an inheritance to the people of Israel, yet they were surely put
out and banished when they abused the favor that had been
shown unto them
. God had planted them there, even as though
He had set them with His own hand. Lo (says He), here is My
resting place and yours (Ps. 132:14). He intended to dwell among
them Himself and thereupon He promised to give them rest here,
insomuch that although all other people should be displaced and
removed to and fro, yet should the children of Abraham continue
to enjoy the heritage of that land. Notwithstanding, this did not
prevent God from driving them out again and scattering them
abroad with the wind because they had defiled that land, which
should have been kept holy to His name

Now since it is so, let us not think it strange when God at this
day sends many changes into the world; for He has given no such
privilege to any nation as to say unto them, “YOU shall inhabit
this land, as the land of Canaan was given to the lineage of
Abraham.” But we see how God is offended. We see men’s misdoings
as heinous as can be. Now then, if God removes men, let us
understand that it is for their sins.

Source: https://puritanboard.com/threads/what-causes-nations-and-empires-to-decline.55621/, Comment 13

cf: Leviticus 18:34: Defile not ye yourselves in any of these things: for in all these the nations are defiled which I cast out before you: 25 And the land is defiled: therefore I do visit the iniquity thereof upon it, and the land itself vomiteth out her inhabitants. 26 Ye shall therefore keep my statutes and my judgments, and shall not commit any of these abominations; neither any of your own nation, nor any stranger that sojourneth among you: