Deuteronomy 29:24
22 The generation to come—your descendants who will rise up after you, as well as the foreigner who will come from distant places—will see the afflictions of that land and the illnesses that the Lord has brought on it. 23 The whole land will be covered with brimstone, salt, and burning debris; it will not be planted nor will it sprout or produce grass. It will resemble the destruction of Sodom and Gomorrah, Admah and Zeboyim, which the Lord destroyed in his intense anger. 24 Then all the nations will ask, ‘Why has the Lord done all this to this land? What is this fierce, heated display of anger all about?’ 25 Then people will say, ‘Because they abandoned the covenant of the Lord, the God of their ancestors, which he made with them when he brought them out of the land of Egypt. 26 They went and served other gods and worshiped them, gods they did not know and that he did not permit them to worship.
Jeremiah 22:8
6 “For the Lord says concerning the palace of the king of Judah,“‘This place looks like a veritable forest of Gilead to me. It is like the wooded heights of Lebanon in my eyes. But I swear that I will make it like a wilderness whose towns have all been deserted. 7 I will send men against it to destroy it with their axes and hatchets. They will hack up its fine cedar panels and columns and throw them into the fire. 8 “‘People from other nations will pass by this city. They will ask one another, “Why has the Lord done such a thing to this great city?” 9 The answer will come back, “It is because they broke their covenant with the Lord their God and worshiped and served other gods.” 10 “‘Do not weep for the king who was killed. Do not grieve for him. But weep mournfully for the king who has gone into exile. For he will never return to see his native land again.
Notes and References
"... In their expansion of Deuteronomy, the exilic Deuteronomists drew on Jeremiah's diction ... It remains to present the use made by the Deuteronomists of Jeremiah in the Deuteronomistic historical work. The most useful listing of such phrases is that of Weinfeld, though my conclusions on the direction of borrowing at specific points differ from his. It is clear that to distinguish phrases distinctive to Jeremiah from other phrases current in Deuteronomic circles in the period is exceedingly difficult ... In 1 Kings 9:8-9 we have the form of question, 'Why has Yahweh done thus to this land and to this house?' Such sequences appear in Jeremiah 5:19; 9:11-12; 16:10-11; and 22:8-9. There is an Assyrian form like this, but Jeremiah's usage certainly encouraged this sequence (and that in Deuteronomy 29:23-24) ..."
Holladay, William Lee Jeremiah 2: A Commentary on the Book of the Prophet Jeremiah, Chapters 26-52 (pp. 121-122) Fortress Press, 1989