Messenger of Allah ﷺ commanded us to throw away the flesh of domestic asses whether uncooked or cooked; he then never commanded us to eat that.
أَمَرَنَا رَسُولُ اللَّهِ ﷺ أَنْ نُلْقِيَ لُحُومَ الْحُمُرِ الأَهْلِيَّةِ نِيئَةً وَنَضِيجَةً ثُمَّ لَمْ يَأْمُرْنَا بِأَكْلِهِ