Sunan an-Nasa'i, Book 37, Hadith 95 (In-Book) ⓘ
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 [SAW] said: 'No one should be punished with the punishment of Allah.' If it had been me, I would have killed them; the Messenger of Allah [SAW] said: 'Whoever changes his religion, kill him.'"
أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ الْمُبَارَكِ، قَالَ حَدَّثَنَا أَبُو هِشَامٍ، قَالَ حَدَّثَنَا وُهَيْبٌ، قَالَ حَدَّثَنَا أَيُّوبُ، عَنْ عِكْرِمَةَ، أَنَّ نَاسًا، ارْتَدُّوا عَنِ الإِسْلاَمِ، فَحَرَّقَهُمْ عَلِيٌّ بِالنَّارِ قَالَ ابْنُ عَبَّاسٍ لَوْ كُنْتُ أَنَا لَمْ، أُحَرِّقْهُمْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ تُعَذِّبُوا بِعَذَابِ اللَّهِ أَحَدًا " . وَلَوْ كُنْتُ أَنَا لَقَتَلْتُهُمْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ بَدَّلَ دِينَهُ فَاقْتُلُوهُ " .
also referenced under: Hadith 4060 (Reference) & Volume 5, Book 37, Hadith 4065 (DarusSalam)