Ibn 'Umar reported that Allah's Messenger (ﷺ) forbade the eating of the (flesh) of domestic asses on the Day of Khaibar in spite of the fact that people needed that
Hadith No. 5009
Sahih Muslim