If Israel repents for even a single day, the Son of David (Messiah) will come immediately. If they do not repent, the redemption will come in its appointed time.

-Sanhedrin 97b