He was traveling with the Messenger of Allah ﷺ when, along one of the roads to Mecca, he stayed behind with some of his companions who were in the state of ihram, while he himself was not. He spotted a wild donkey, mounted his horse, and asked his companions to hand him his whip. They refused. He then asked them for his spear, and again they refused. So he took it himself, charged at the donkey, and killed it.Some of the Prophet's companions ﷺ ate from it, while others refused. When they caught up with the Messenger of Allah ﷺ, they asked him about it. He said, "It is simply food that Allah has provided for you to eat."
قال قرأت على عبد الرحمن بن مهدي: مالك عن أبي النضر مولى عمر بن عبيد الله عن نافع مولى أبي قتادة الأنصاري
أنه كان مع رسول الله ﷺ حتى إذا كان ببعض طرق مكة تخلف مع أصحاب له محرمين وهو غير محرم فرأى حمارا وحشيا فاستوى على فرسه وسأل أصحابه أن يناولوه سوطه فأبوا فسألهم رمحه فأبوا وأخذه ثم شد على الحمار فقتله فأكل بعض أصحاب النبي ﷺ وأبى بعضهم فلما أدركوا رسول الله ﷺ سألوه عن ذلك فقال إنما هي طعمة أطعمكموها الله عز وجل
Its chain of transmission is sahih, and Nafi, the freedman of Abu Qatada, is Ibn Abbas al-Aqra, who has already been mentioned. He is trustworthy and his hadith is found in the collections of all the major compilers. The hadith has already appeared at 22425.