Sahih Muslim, Book 34, Hadith 44 (Muslim 4970)

Bara' b. 'Azib 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.