(1) 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 Adonai your God has banished you, (2) and you return to Adonai your God, and you and your children heed His command with all your heart and soul, just as I enjoin upon you this day, (3) then Adoni your God will restore your fortunes and take you back in love. He will bring you together again from all the peoples where Adonai your God has scattered you. (4) Even if your outcasts are at the ends of the world, from there Adonai your God will gather you, from there He will fetch you. (5) And Adonai 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.
(1) ושב ה' אלהיך את שבותך THEN THE LORD THY GOD WILL TURN THY CAPTIVITY — To express this idea it ought to have written והשיב את שבותך, “then He will bring back thy captivity”. But our Rabbis learned from this that it is as if the Shechinah or Divine presence dwells with Israel in all the misery of their exile, so that when they are redeemed, He has written “Redemption” of Himself — that He will return with them (Megillah 29a). Furthermore, it may be said that the day of the gathering of the exiles is so great and so difficult, that it is as though God Himself must grab hold of every person’s hands, each person from his place, as it is said, (Isaiah 27:12) “And ye shall be gathered one by one, O ye children of Israel”. We even find this expression in connection with the gathering of the exiles of other nations, as e.g. (Jeremiah 48:47): ושבתי שבות מואב "And I shall bring back the exiles of Moab".
§ It is taught in a baraita: Rabbi Shimon ben Yoḥai says: Come and see how beloved the Jewish people are before the Holy One, Blessed be He. Every place they were exiled, the Divine Presence went with them. They were exiled to Egypt, and the Divine Presence went with them, as it is stated: “Did I reveal myself to the house of your father when they were in Egypt?” (I Samuel 2:27). They were exiled to Babylonia, and the Divine Presence went with them, as it is stated: “For your sake I have sent to Babylonia” (Isaiah 43:14). So too, when, in the future, they will be redeemed, the Divine Presence will be with them, as it is stated: “Then the Lord your God will return with your captivity” (Deuteronomy 30:3). It does not state: He will bring back, i.e., He will cause the Jewish people to return, but rather it says: “He will return,” which teaches that the Holy One, Blessed be He, will return together with them from among the various exiles.