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.
Sahih Muslim Book 34, Hadith 44