The Messenger of Allah ﷺ forbade the meat of domestic donkeys on the day of Khaybar.
أخبرنا إسحق بن إبراهيم قال أنبأنا محمد بن بشر قال أنبأنا عبيد الله ح وأنبأنا عمرو بن علي قال حدثنا يحيى عن عبيد الله عن نافع
أن رسول الله ﷺ نهى عن الحمر الأهلية يوم خيبر
Bukhari transmitted it in the Book of Sacrifices and Game, chapter on the meat of domestic donkeys, no. 5522, from the hadith of Yahya Qattan through this route, and it is found in Kubra, no. 4848.