On the Day of the battle of Khaibar, Allah's Messenger (ﷺ) made donkey's meat unlawful and allowed the eating of horse flesh.
Sahih al-Bukhari Book 72, Hadith 46