Abu Hurairah reported,

The Messenger of Allah ﷺ dispatched a military expedition in which I took part. He said, "If you encounter so-and-so and so-and-so, burn them with fire."Then, when we came to bid him farewell, the Prophet ﷺ said, "I had ordered you to burn those two men with fire, but no one should punish with the punishment of Allah except Allah Himself. So if you encounter them, kill them instead."

Azami 7849

Sahih

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

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

الأعظمي 7849صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Bidding farewell to armies
Numbering
Jami al-Kamil 7849 (2nd edition)
Azami 7849