Abdullah bin Abbas reported,

Ibn Abbas said, "Had it been me, I would have killed them, because the Messenger of Allah ﷺ said, 'Whoever changes his religion, kill him.' But I would not have burned them, because the Messenger of Allah ﷺ said, 'Do not punish with the punishment of Allah.'"When this reached Ali, he said, "Ibn Abbas has spoken the truth."

Tirmidhi 1458

Sahih

حدثنا أحمد بن عبدة الضبي البصري حدثنا عبد الوهاب الثقفي حدثنا أيوب عن عكرمة أن عليا حرق قوما ارتدوا عن الإسلام فبلغ ذلك

ابن عباس فقال

لو كنت أنا لقتلتهم لقول رسول الله ﷺ من بدل دينه فاقتلوه ولم أكن لأحرقهم لقول رسول الله ﷺ لا تعذبوا بعذاب الله فبلغ ذلك عليا فقال صدق ابن عباس

الترمذي 1458صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Legal punishments
Chapter
Apostate
Numbering
Darussalam 1458
Tirmidhi 1458