Ibn 'Umar reported that Messenger of Allah ﷺ forbade the eating of the (flesh) of domestic asses on the Day of Khaibar in spite of the fact that people needed that. (Using translation from Muslim 561d)
«نَهَى رَسُولُ اللَّهِ ﷺ عَنْ أَكْلِ الْحِمَارِ الْأَهْلِيِّ يَوْمَ خَيْبَرَ وَكَانَ النَّاسُ احْتَاجُوا إِلَيْهَا»