Was Mohammed merciful to people who did not want to believe in him as a messenger or convert from Islam?

IN saheeh el Boukhari  Book of Jihad and Siyar, chapter La Yoazab Be azab allah.

Akrima is telling us that Ali has burnt people and the news reached Ibn Abbas. So Ibn abbas said if it was me I wouldn’t have burnt them but would have killed them like the prophet said “whoever converts from islam should be killed.”

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

صحيح البخاري .. كتاب الجهاد و السير .. باب لا يعذب بعذاب الله