The Messenger of Allah(ﷺ) forbade the flesh of domestic asses on the day of Khaibar, but permitted horse flesh.

Sunan Abi Dawud Book 28, Hadith 53