That 'Ali burnt some people who apostasized from Islam. This news reached Ibn 'Abbas, so he said: "If it were me I would have killed them according to the statement of Messenger of Allah ﷺ. The Messenger of Allah ﷺ said: 'Whoever changes his religion then kill him.' And I would not have burned them because the Messenger of Allah ﷺ said: 'Do not punish with the punishment of Allah.' So this reached 'Ali, and he said: "Ibn 'Abbas has told the truth." (Using translation from Tirmidhī 1458)
لَمْ أَكُنْ لِأُحَرِّقَهُمْ بِالنَّارِ وَإِنَّ رَسُولَ اللهِ ﷺ قَالَ لَاتُعَذِّبُوا بِعَذَابِ اللهِ وَكُنْتُ قَاتِلَهُمْ لِقَوْلِ رَسُولِ اللهِ ﷺ مَنْ بَدَّلَ دِينَهُ فَاقْتُلُوهُ فَبَلَغَ ذَلِكَ عَلِيًّا كَرَّمَ اللهُ وَجْهَهُ فَقَالَ وَيْحَ ابْنِ أُمِّ ابْنِ عَبَّاسٍ