Sahih al-Bukhari, Book 72, Hadith 46 (Bukhari 5308)

Narrated Jabir bin `Abdullah:

On the Day of the battle of Khaibar, Allah's Messenger (ﷺ) made donkey's meat unlawful and allowed the eating of horse flesh.