Deuteronomy 30:2-3

ISV(i) 2 and when you—you and your descendants, that is—will have returned to him and obeyed all the commands that I’m giving you today with all your heart and soul, 3 then the LORD your God will restore your fortunes and will show compassion to you. He will gather you from among the peoples where he had scattered you.