The Prophet (ﷺ) made the meat of donkeys unlawful on the day of the battle of Khaibar.

Sahih al-Bukhari Book 72 Hadith 48

Sahih al-Bukhari #5521

Hunting, Slaughtering 72:48

Narrated Ibn `Umar:

The Prophet (ﷺ) made the meat of donkeys unlawful on the day of the battle of Khaibar.

Chapter: The meat of donkeys

Grade: Sahih