Sahih al-Bukhari, Book 64, Hadith 255 (Bukhari 4039)

Narrated Ibn `Umar:

On the day of Khaiber, Allah's Messenger (ﷺ) forbade the eating of garlic and the meat of donkeys.