Sunan Ibn Majah, Book 27, Hadith 3313 (In-Book)

It was narrated that Abu Ishaq Shaibani said: “I asked ‘Abdullah bin Abu Awfa about the flesh of domesticated donkeys and he said: ‘We were starving on the Day of Khaibar, when we were with the Prophet. The people had gotten some donkeys as spoils of war on the way out from Al-Madinah, so we slaughtered them and our cooking pots were boiling when the caller of the Messenger of Allah cried out, telling us to overturn out pots and not to eat anything of the flesh of donkeys. So we overturned them.’ I said to ‘Abdullah bin Abu Awfa: ‘Was it made unlawful?’ He said: ‘We think that the Messenger of Allah forbade it altogether because it eats excrement.’”

حَدَّثَنَا سُوَيْدُ بْنُ سَعِيدٍ، حَدَّثَنَا عَلِيُّ بْنُ مُسْهِرٍ، عَنْ أَبِي إِسْحَاقَ الشَّيْبَانِيِّ، قَالَ سَأَلْتُ عَبْدَ اللَّهِ بْنَ أَبِي أَوْفَى عَنْ لُحُومِ الْحُمُرِ الأَهْلِيَّةِ، فَقَالَ أَصَابَتْنَا مَجَاعَةٌ يَوْمَ خَيْبَرَ وَنَحْنُ مَعَ النَّبِيِّ ـ صلى الله عليه وسلم ـ وَقَدْ أَصَابَ الْقَوْمُ حُمُرًا خَارِجًا مِنَ الْمَدِينَةِ فَنَحَرْنَاهَا وَإِنَّ قُدُورَنَا لَتَغْلِي إِذْ نَادَى مُنَادِي النَّبِيِّ ـ صلى الله عليه وسلم ـ أَنِ اكْفَئُوا الْقُدُورَ وَلاَ تَطْعَمُوا مِنْ لُحُومِ الْحُمُرِ شَيْئًا ‏.‏ فَأَكْفَأْنَاهَا ‏.‏ فَقُلْتُ لِعَبْدِ اللَّهِ بْنِ أَبِي أَوْفَى حَرَّمَهَا تَحْرِيمًا قَالَ تَحَدَّثْنَا أَنَّمَا حَرَّمَهَا رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ أَلْبَتَّةَ مِنْ أَجْلِ أَنَّهَا تَأْكُلُ الْعَذِرَةَ ‏.‏

sunnah.com