Bara' bin 'Azib (RA) reported: Allah's Messenger (ﷺ) commanded us to throw away the flesh of domestic asses whether uncooked or cooked; he then never commanded us to eat that.
Hadith ReferenceSahih Muslim / The Book of Hunting, Slaughter, and what may be Eaten / Hadith: 1938