One who takes an oath to follow a religion other than Islam Sunan Ibn Majah 2099
Arabic hadith text
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا بَقِيَّةُ، عَنْ عَبْدِ اللَّهِ بْنِ مُحَرَّرٍ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، قَالَسَمِعَ النَّبِيُّ ـ صلى الله عليه وسلم ـ رَجُلاً يَقُولُ أَنَا إِذًا لَيَهُودِيٌّ . فَقَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " وَجَبَتْ "
Translation
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."