Abu Hurairah reported,

The Messenger of Allah ﷺ dispatched us on a military expedition and said, "If you find so-and-so and so-and-so, burn them with fire."Then, just as we were about to set out, the Messenger of Allah ﷺ said, "I had ordered you to burn so-and-so and so-and-so, but no one punishes with fire except Allah. So if you find them, kill them."

Azami 9202

Sahih

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

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

الأعظمي 9202صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Events between the conquest of Makkah and the battles of Hunayn and Taif
Section
Expedition of Hamza bin Amr Aslami to Hubbar bin Aswad and his companion who accosted Zaynab bint the Prophet ﷺ
Numbering
Jami al-Kamil 9202 (2nd edition)
Azami 9202