Sunan an-Nasa'i, Book 42, Hadith 76 (Nasa'i 4348)

It was narrated that Al-Bara said:

"On the Day of Khaibar, the Messenger of Allah forbade the flesh of domesticated donkeys, cooked or raw."