Deuteronomy 30:2-4 Young's Literal Translation (YLT)
2 and hast turned back unto Jehovah thy God, and hearkened to His voice, according to all that I am commanding thee to-day, thou and thy sons, with all thy heart, and with all thy soul --
3 then hath Jehovah thy God turned back [to] thy captivity, and pitied thee, yea, He hath turned back and gathered thee out of all the peoples whither Jehovah thy God hath scattered thee.
4 `If thine outcast is in the extremity of the heavens, thence doth Jehovah thy God gather thee, and thence He doth take thee;
Deuteronomy 30:2-4 New International Version (NIV)
2 and when you and your children return to the Lord your God and obey him with all your heart and with all your soul according to everything I command you today, 3 then the Lord your God will restore your fortunes[a] and have compassion on you and gather you again from all the nations where he scattered you. 4 Even if you have been banished to the most distant land under the heavens, from there the Lord your God will gather you and bring you back.