Jabir bin 'Abdullah is reported to have said: We ate during the time of Khaibar the (flesh) of horses and of wild asses, but Allah's Messenger (ﷺ) prohibited us (to eat) the flesh of domestic asses.
Hadith ReferenceSahih Muslim / The Book of Hunting, Slaughter, and what may be Eaten / Hadith: 1941