2and when you and your children return to the LORD your God and obey His voice with all your heart and all your soul according to everything I am giving you today,
3then He will restore you from captivity and have compassion on you and gather you from all the nations to which the LORD your God has scattered you.
4Even if you have been banished to the farthest horizon, He will gather you and return you from there.
— Deuteronomy 30:2-4