Abu Muhammad says that he heard Sayyiduna Abu Qatadah (may Allah be pleased with him) saying: We set out with the Messenger of Allah (peace and blessings be upon him), and when we reached a place called al-Qahah, some of our companions were in the state of ihram and some were not. Suddenly I saw that my companions were looking at something; I looked too, and it was a wild donkey. I saddled my horse and mounted it, I took hold of my spear, and my whip fell. I said to my companions: Hand it to me — and they were in the state of ihram. They said: By Allah! We will not help you with it at all. I picked up my whip, then went after the donkey from behind, and it was behind a mound. I struck it with my spear and brought it down. I brought it to my companions; some of them said: Eat it, and some said: Do not eat it. The Messenger of Allah (peace and blessings be upon him) was ahead of us; I spurred my horse on, caught up with the Messenger of Allah (peace and blessings be upon him) and asked him, and he (peace and blessings be upon him) said: "It is lawful, so eat it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9907