On the day of Khaibar, Allah's Messenger (ﷺ) forbade the eating of donkey meat.

Sahih al-Bukhari Book 64 Hadith 257

Sahih al-Bukhari #4217

Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) 64:257

Narrated Ibn `Umar:

On the day of Khaibar, Allah's Messenger (ﷺ) forbade the eating of donkey meat.

Chapter: Ghazwa of Khaibar

Grade: Sahih