Sunan an-Nasa'i, Book 37, Hadith 95 (Nasa'i 4070)

It was narrated from 'Ikrimah:

"Some people apostatized after accepting Islam, and 'Ali burned them with fire. Ibn 'Abbas said: 'If it had been me, I would not have burned them; the Messenger of Allah said: 'Whoever changes his religion, kill him.'"