Abu Tha'laba reported that Allah's Messenger (ﷺ) prohibited (the eating) of the flesh of domestic asses.
Sahih Muslim Book 34, Hadith 36