"I would not have burned them with fire, for the Messenger of Allah ﷺ said, 'Do not punish with the punishment of Allah.' Rather, I would have killed them according to the words of the Messenger of Allah ﷺ, for the Messenger of Allah ﷺ said, 'Whoever changes his religion, kill him.'"When this reached Ali , he said, "Woe to Ibn Abbas."
حدثنا أحمد بن محمد بن حنبل حدثنا إسمعيل بن إبراهيم أخبرنا أيوب عن عكرمة أن عليا عليه السلام أحرق ناسا ارتدوا عن الإسلام فبلغ ذلك
لم أكن لأحرقهم بالنار إن رسول الله ﷺ قال لا تعذبوا بعذاب الله وكنت قاتلهم بقول رسول الله ﷺ فإن رسول الله ﷺ قال من بدل دينه فاقتلوه فبلغ ذلك عليا عليه السلام فقال ويح ابن عباس
Bukhari narrated it in "Apostates and Obstinate Rebels, and Fighting Them," chapter on the ruling concerning the male and female apostate and calling them to repent, hadith 6922, from the hadith of Ayub Sakhtiyani through this same route. It is also found in Musnad Ahmad, 2/217, hadith 1871.