On the day of Khaybar, the Messenger of Allah ﷺ forbade the meat of domestic donkeys, whether cooked or raw.
أخبرنا محمد بن عبد الأعلى قال حدثنا عبد الرزاق قال حدثنا معمر عن عاصم عن الشعبي
نهى رسول الله ﷺ يوم خيبر عن لحوم الحمر الإنسية نضيجا ونيئا
Sourced from Bukhari, chapter on the Battle of Khaybar, no. 4226, and Muslim, chapter on hunting and slaughtered animals, section on the prohibition of eating the meat of domestic donkeys, no. 3193/1938, from the hadith of Asim Ahwal through this same chain, and it is found in Kubra, no. 4850.