כי ישוב יהוה לשוש עליך לטוב כאשר שש על אבתיך "When G-d will return to rejoice over you for the good, as He rejoiced over your forefathers". (Deutoronomy 30:9). Rabbenu Bahye states that it is possible that the verse is hinting here at the return of the King (G-d) with his bride (the Jewish people) at the time of the redemption.
The verse tells us that G-d will bless the works of your hand even more when the King returns with His bride to His kingdom. Then he will rejoice over you as He rejoiced over your forefathers. And if you should ask, "When will He return?", the next verse tells us כי תשמע בקול יהוה אלהיך "when you listen to the voice of the L-rd your G-d". This is in accordance with the statement in Malachi (3): "Return to Me and I shall return to you".
In other words it is clear that it all depends on our making Teshubah (repentance).
(See Rabbenu Bahya, Debarim 30:9)