Sunan Ibn Majah, Book 11, Hadith 10 (Ibn Majah 2099)

It was narrated from Anas that the Messenger of Allah (ﷺ) heard a man say:

"If that happens, I will be a Jew." The Messenger of Allah (ﷺ) said: 'That is guaranteed."