The Messenger of Allah ﷺ forbade, on the day of Khaybar, the meat of domesticated donkeys, and he forbade animals that feed on filth, prohibiting both riding them and eating their meat.
أخبرني عثمان بن عبد الله قال حدثني سهل بن بكار قال حدثنا وهيب بن خالد عن ابن طاوس عن عمرو بن شعيب عن أبيه
أن رسول الله ﷺ نهى يوم خيبر عن لحوم الحمر الأهلية وعن الجلالة وعن ركوبها وعن أكل لحمها
[Its isnad is hasan] Abu Dawud narrated it in the Book of Foods, Chapter on Eating the Meat of Domestic Donkeys, no. 3811, from Sahl bin Bakkar with this account, and it is also in Kubra, no. 4536.