Sahih Muslim 3571
It is narrated from Shaibani; he says: I asked Hazrat Abdullah bin Abi Aufa (ra) about the meat of domestic donkeys. He replied: On the day of Khaibar we were struck by severe hunger, and we were with the Messenger of Allah (saw). We took the people's donkeys which were outside the town. We slaughtered them. Our pots were boiling when a caller called out on behalf of the Messenger of Allah (saw): Overturn the pots and do not eat anything of the meat of the donkeys. I said: He (saw) has made them unlawful! What kind of unlawfulness? The narrator says: We spoke of these things among ourselves, and we said: He (saw) declared them absolutely unlawful, or he declared them unlawful because their fifth (Khums) had not been taken out.
AI-translated by Islam-Today
Book 34: Hunting, Slaughtering and Which Animals May Be Eaten