It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever swears an oath on something (in such a way, that if he is lying or does not do it he is outside Islam), then he is as he said: if he said 'I am a Jew', then he is a Jew; if he said 'I am a Christian', then he is a Christian; and if he said 'I am a Magian', then he is a Magian." This chain is da'if (weak) because of the weakness of Ubays bin Maymun.