Rafi bin Khadij reported,

While we were with the Messenger of Allah ﷺ at Dhul-Hulayfah in Tihamah, the people captured some camels and sheep. The Messenger of Allah ﷺ was at the rear of the company, but those at the front hurried ahead, slaughtered the animals, and set up the cooking pots.When the Messenger of Allah ﷺ reached them, he ordered that the pots be overturned. He then divided the spoils among them, equating ten sheep with one camel.While they were in this situation, one of the camels bolted. There were only a few horses among the company, so the people pursued it but it exhausted them. A man shot it with an arrow, and Allah brought it to a halt.The Messenger of Allah ﷺ said, "These beasts have wild tendencies like the wild animals, so whichever of them gets away from you, deal with it in this manner."

Nasai 4302

Sahih

أخبرنا أحمد بن سليمان قال حدثنا حسين بن علي عن زائدة عن سعيد بن مسروق عن عباية بن رفاعة بن رافع

عن رافع بن خديج قال

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

النسائي 4302صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Hunting and slaughtering
Chapter
Tame animal that becomes wild
Numbering
Darussalam 4302
Nasai 4302