On the day of Khaibar, Allah's Messenger (ﷺ) forbade the eating of donkey meat and allowed the eating of horse meat.
Sahih al-Bukhari Book 64, Hadith 259