Sunan an-Nasa'i, Book 35, Hadith 12 (Nasa'i 3792)

It was narrated from 'Abdullah bin Buraidah that his father said:

"The Messenger of Allah said: 'Whoever says: I have nothing to do with Islam, if he is lying then he is as he said, and if he is telling the truth, his Islam will not be sound.'"