He was with the Messenger of Allah ﷺ until, on a stretch of the road to Mecca, he stayed behind with some companions of his who were in a state of ihram, while he himself was not in ihram. He spotted a wild donkey, mounted his horse, and asked his companions to hand him his whip, but they refused. He then asked them for his spear, but they refused that too. 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, and he said, "It is simply food that Allah has provided for you to eat."
و حدثنا يحيى بن يحيى قال قرأت على مالك ح و حدثنا قتيبة عن مالك فيما قرئ عليه عن أبي النضر عن نافع مولى أبي قتادة
أنه كان مع رسول الله ﷺ حتى إذا كان ببعض طريق مكة تخلف مع أصحاب له محرمين وهو غير محرم فرأى حمارا وحشيا فاستوى على فرسه فسأل أصحابه أن يناولوه سوطه فأبوا عليه فسألهم رمحه فأبوا عليه فأخذه ثم شد على الحمار فقتله فأكل منه بعض أصحاب النبي ﷺ وأبى بعضهم فأدركوا رسول الله ﷺ فسألوه عن ذلك فقال إنما هي طعمة أطعمكموها الله