Deuteronomy 4:26
25 After you have produced children and grandchildren and have been in the land a long time, if you become corrupt and make an image of any kind and do other evil things before the Lord your God that enrage him, 26 I invoke heaven and earth as witnesses against you today that you will surely and swiftly be removed from the very land you are about to cross the Jordan to possess. You will not last long there because you will surely be annihilated. 27 Then the Lord will scatter you among the peoples and there will be very few of you among the nations where the Lord will drive you.
Joshua 23:16
15 But in the same way that every faithful promise the Lord your God made to you has been realized, it is just as certain that if you disobey, then the Lord will bring on you every judgment until he destroys you from this good land that the Lord your God gave you. 16 If you violate the covenantal laws of the Lord your God which he commanded you to keep, and you follow, worship, and bow down to other gods, then the Lord will be very angry with you and you will disappear quickly from the good land that he gave to you.”
Notes and References
"... the writer developed the idea of exile itself. He was not prepared just to add a statement at the end saying that the Babylonians conquered and exiled Judah—which would have been an unexpected, unrelated finish. Rather, he inserted references to the possibility of exile in various places in the history, so that conquest and exile now became a fundamental part of the story, a threatening sword hanging over Israel's and Judah's heads for centuries ... This writer was not merely listing facts of history. He was producing an interpretive history. In it, exile was not just a one-time event. It was a theme ..."
Friedman, Richard Elliott Who Wrote the Bible? (pp. 138-139) Harper San Francisco, 1997