Musnad Ahmad 2551
Grading supplied with this record: Its isnad is saheeh, al-Bukhari (6922)]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated from 'Ikrimah that
Some of these heretics were brought to ‘Ali and they had some books with them. He issued orders that a fire be lit, then he burned them and their books. News of that reached Ibn 'Abbas (رضي الله عنه) and he said: If it were me, I would not have burned them because the Messenger of Allah (ﷺ) forbade it; but I would have executed them because the Messenger of Allah (ﷺ) said: “Whoever changes his religion, execute him.” And the Messenger of Allah (ﷺ) said: "Do not punish with the punishment of Allah, may He be glorified and exalted.”
Full reference and source
Musnad Ahmad 2551 Arabic/English book : Book 25, Hadith 2551
View source on Sunnah.com (opens in a new tab)