Abu Dharr (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "Whoever separates from the community by even a hand-span has removed the noose of Islam from his neck."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16614