Mishneh Torah, Kings and Wars, Chapter 11
When the true Messianic king will arise and prove successful, his position becoming exalted and uplifted, they will all return and realize that their ancestors endowed them with a false heritage and their prophets and ancestors caused them to err.
РАМБАМ | Moshiach Time » Torah study 9977