Deuteronomy 29:24-28

24all the nations awill say, bWhy has the Lord done thus to this land? What caused the heat of this great anger?’ 25Then people will say, ‘It is because they abandoned the covenant of the Lord, the God of their fathers, which he made with them when he brought them out of the land of Egypt, 26and went and served other gods and worshiped them, gods whom they had not known and whom he had not allotted to them. 27Therefore the anger of the Lord was kindled against this land, cbringing upon it all the curses written in this book, 28and the Lord duprooted them from their land in anger and fury and great wrath, and ecast them into another land, as they are this day.’

1 Kings 9:6-9

6 fBut if you turn aside from following me, you or your children, and do not keep my commandments and my statutes that I have set before you, but go and serve other gods and worship them, 7 gthen I will cut off Israel from the land that I have given them, hand the house that I have consecrated for my name I will cast out of my sight, iand Israel will become a proverb and a byword among all peoples. 8And this house will become a heap of ruins.
Syriac, Old Latin; Hebrew  will become high
Everyone passing by it will be astonished and will hiss, and they will say, kWhy has the Lord done thus to this land and to this house?’
9Then they will say, ‘Because lthey abandoned the Lord their God who brought their fathers out of the land of Egypt and laid hold on other gods and worshiped them and served them. Therefore the Lord has brought all this disaster on them.’”

Jeremiah 22:8-9

8“‘And many nations will pass by this city, and every man will say to his neighbor, mWhy has the Lord dealt thus with this great city?” 9 nAnd they will answer, “Because they have forsaken the covenant of the Lord their God and worshiped other gods and served them.”’”

Copyright information for ESV