Abu Hurairah reported,

The Messenger of Allah ﷺ sent us out on an expedition and said, "If you find so-and-so and so-and-so," naming two men from Quraysh, "burn them with fire."Then, when we were about to set out, the Messenger of Allah ﷺ said, "I had ordered you to burn so-and-so and so-and-so with fire, but only Allah punishes with fire. So if you find them, kill them instead."

Tirmidhi 1571

Sahih

حدثنا قتيبة حدثنا الليث عن بكير بن عبد الله عن سليمان بن يسار

عن أبي هريرة قال

بعثنا رسول الله ﷺ في بعث فقال إن وجدتم فلانا وفلانا لرجلين من قريش فأحرقوهما بالنار ثم قال رسول الله ﷺ حين أردنا الخروج إني كنت أمرتكم أن تحرقوا فلانا وفلانا بالنار وإن النار لا يعذب بها إلا الله فإن وجدتموهما فاقتلوهما

الترمذي 1571صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Expeditions
Chapter
Prohibition of burning with fire
Numbering
Darussalam 1571
Tirmidhi 1571