The Prophet (ﷺ) prohibited the eating of donkey's meat on the day of the battle of Khaibar, and allowed the eating of horse flesh.
Sahih al-Bukhari Book 72, Hadith 50