Sayyiduna Anas (may Allah be pleased with him) narrates that some people of the Zutt who worshipped an idol were brought to Sayyiduna Ali (may Allah be pleased with him), and he burned them with fire. Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: The Messenger of Allah (peace and blessings be upon him) only said: "Whoever changes his religion, kill him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المرتد / 16860