Deuteronomy 30:1-30:6
When all these things befall you--the blessing and the curse that I have set before you--and you take them to heart amidst the various nations to which the Lord your God has banished you, and you return to the Lord your God, and you and your children heed His command with all your heart and soul, just as I enjoin upon you this day, then the Lord your God will restore your fortunes and take you back in love.
He will bring you together again from all the peoples where the Lord your God has scattered you. Even if your outcasts are at the ends of the world, from there the Lord your God will gather you, from there He will fetch you. And the Lord your God will bring you to the land that your fathers possessed, and you shall possess it; and He will make you more prosperous and more numerous than your fathers.
Then the Lord your God will open up your heart and the hearts of your offspring to love the Lord your God with all your heart and soul, in order that you may live.