Leviticus 26:39-45 New King James Version (NKJV)
39 And those of you who are left shall [a]waste away in their iniquity in your enemies’ lands;
also in their fathers’ iniquities, which are with them, they shall waste away.
40 ‘But if they confess their iniquity and the iniquity of their fathers, with their unfaithfulness in which they were unfaithful to Me, and that they also have walked contrary to Me,
41 and that I also have walked contrary to them and have brought them into the land of their enemies;
if their uncircumcised hearts are humbled, and they accept their guilt—
42 then I will remember My covenant with Jacob, and My covenant with Isaac and My covenant with Abraham I will remember;
I will remember the land.
43 The land also shall be left empty by them, and will enjoy its sabbaths while it lies desolate without them;
they will accept their guilt, because they despised My judgments and because their soul abhorred My statutes.
44 Yet for all that, when they are in the land of their enemies, I will not cast them away, nor shall I abhor them, to utterly destroy them and break My covenant with them;
for I am the Lord their God.
45 But for their sake I will remember the covenant of their ancestors, whom I brought out of the land of Egypt in the sight of the nations, that I might be their God:
I am the Lord.’ ”
Deuteronomy 30:1-3 New King James Version (NKJV)
The Blessing of Returning to God
30 “Now it shall come to pass, when all these things come upon you, the blessing and the curse which I have set before you, and you [a]call them to mind among all the nations where the Lord your God drives you, 2 and you return to the Lord your God and obey His voice, according to all that I command you today, you and your children, with all your heart and with all your soul, 3 that the Lord your God will bring you back from captivity, and have compassion on you, and gather you again from all the nations where the Lord your God has scattered you.
Nehemiah 1:9 New King James Version (NKJV)
9 but if you return to Me, and keep My commandments and do them, though some of you were cast out to the farthest part of the heavens, yet I will gather them from there, and bring them to the place which I have chosen as a dwelling for My name.’