He was with the Prophet ﷺ when, on part of the road to Mecca, he fell behind with some of his companions who were in a state of ihram, while he himself was not in ihram. He spotted a wild donkey and mounted his horse. He asked his companions to hand him his whip, but they refused. He asked them for his spear, but they refused as well. So he took it himself, then 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 Prophet ﷺ, they asked him about it, and he said, "It is simply food that Allah has provided for you to eat."
حدثنا قتيبة عن مالك بن أنس عن أبي النضر عن نافع مولى أبي قتادة
أنه كان مع النبي ﷺ حتى إذا كان ببعض طريق مكة تخلف مع أصحاب له محرمين وهو غير محرم فرأى حمارا وحشيا فاستوى على فرسه فسأل أصحابه أن يناولوه سوطه فأبوا فسألهم رمحه فأبوا عليه فأخذه ثم شد على الحمار فقتله فأكل منه بعض أصحاب النبي ﷺ وأبى بعضهم فأدركوا النبي ﷺ فسألوه عن ذلك فقال إنما هي طعمة أطعمكموها الله
Agreed upon [by Bukhari and Muslim]. Muslim narrated it in the Hajj, chapter on the prohibition of hunting edible land game, etc., no. 1196, from Qutayba. Bukhari narrated it in Jihad and Expeditions, chapter on what has been said concerning spears, nos. 2914, 1823, from the hadith of Malik through this same route, and it is found in Muwatta, 1/350 (Yahya's recension).