Abu Qatada reported,

He was with the Messenger of Allah ﷺ until, on part of the road to Mecca, he stayed behind with some of his companions who were in a state of ihram while he himself was not. He spotted a wild donkey and mounted his horse. He then asked his companions to hand him his whip, but they refused. He asked them for his spear, and they refused again. So he took it himself, charged at the donkey, and killed it.Some of the Messenger of Allah's ﷺ companions ate from it, while others declined. When they caught up with the Messenger of Allah ﷺ, they asked him about it, and he said, "It is simply food that Allah has provided for you to eat."

Bukhari 5490

Sahih

حدثنا إسماعيل قال حدثني مالك عن أبي النضر مولى عمر بن عبيد الله عن نافع مولى أبي قتادة

عن أبي قتادة

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

البخاري 5490صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Slaughter and hunting
Chapter
Hunting
Numbering
Darussalam 5490
Bukhari 5490