Jabir b. 'Abdullah reported that Allah's Messenger (ﷺ) prohibited eating of the flesh of domestic asses on the Day of Khaibar, and permitted the cooking of the flesh of horses.
Sahih Muslim Book 34, Hadith 51