Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:19465Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb al-Qāḍī > Yaḥyá b. Ḥabīb b. ʿArabī > ʿAbd

Someone came to Messenger of Allah ﷺ and said, "The donkeys have been (slaughtered and) eaten. Another man came and said, "The donkeys have been destroyed." On that the Prophet ﷺ ordered a caller to announce to the people: Allah and His Apostle forbid you to eat the meat of donkeys, for it is impure.' Thus the pots were turned upside down while the (donkeys') meat was boiling in them. (Using translation from Bukhārī 5528)   

البيهقي:١٩٤٦٥أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ الْقَاضِي ثنا يَحْيَى بْنُ حَبِيبِ بْنِ عَرَبِيٍّ ثنا عَبْدُ الْوَهَّابِ الثَّقَفِيُّ عَنْ أَيُّوبَ عَنْ مُحَمَّدِ بْنِ سِيرِينَ عَنْ أَنَسٍ ؓ

أَنَّ النَّبِيَّ ﷺ جَاءَهُ جَاءٍ فَقَالَ أَكَلْتُ الْحُمُرَ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أَكَلْتُ الْحُمُرَ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أُفْنِيَتِ الْحُمُرُ فَنَادَى مُنَادٍ فِي النَّاسِ إِنَّ اللهَ ﷻ وَرَسُولَهُ يَنْهَيَانِكُمْ عَنْ لُحُومِ الْحُمُرِ الْأَهْلِيَّةِ فَإِنَّهَا نَجَسٌ قَالَ فَأُكْفِئَتِ الْقُدُورُ وَإِنَّهَا لَتَفُورُ بِاللَّحْمِ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ سَلَّامِ وَغَيْرِهِ عَنْ عَبْدِ الْوَهَّابِ

See similar narrations below:

Collected by Bukhārī, Muslim
bukhari:4199ʿAbdullāh b. ʿAbd al-Wahhāb > ʿAbd al-Wahhāb > Ayyūb > Muḥammad > Anas b. Mālik

Someone came to Messenger of Allah ﷺs and said, "The donkeys have been eaten (by the Muslims)." The Prophet kept quiet. Then the man came again and said, "The donkeys have been eaten." The Prophet ﷺ kept quiet. The man came to him the third time and said, "The donkeys have been consumed." On that the Prophet ﷺ ordered an announcer to announce to the people, "Allah and His Apostle forbid you to eat the meat of donkeys." Then the cooking pots were upset while the meat was still boiling in them.  

البخاري:٤١٩٩حَدَّثَنَا عَبْدُ اللَّهِ بْنُ عَبْدِ الْوَهَّابِ حَدَّثَنَا عَبْدُ الْوَهَّابِ حَدَّثَنَا أَيُّوبُ عَنْ مُحَمَّدٍ عَنْ أَنَسِ بْنِ مَالِكٍ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ جَاءَهُ جَاءٍ فَقَالَ أُكِلَتِ الْحُمُرُ فَسَكَتَ ثُمَّ أَتَاهُ الثَّانِيَةَ فَقَالَ أُكِلَتِ الْحُمُرُ فَسَكَتَ ثُمَّ الثَّالِثَةَ فَقَالَ أُفْنِيَتِ الْحُمُرُ فَأَمَرَ مُنَادِيًا فَنَادَى فِي النَّاسِ إِنَّ اللَّهَ وَرَسُولَهُ يَنْهَيَانِكُمْ عَنْ لُحُومِ الْحُمُرِ الأَهْلِيَّةِ فَأُكْفِئَتِ الْقُدُورُ وَإِنَّهَا لَتَفُورُ بِاللَّحْمِ  

bukhari:5528Muḥammad b. Salām > ʿAbd

Someone came to Messenger of Allah ﷺ and said, "The donkeys have been (slaughtered and) eaten. Another man came and said, "The donkeys have been destroyed." On that the Prophet ﷺ ordered a caller to announce to the people: Allah and His Apostle forbid you to eat the meat of donkeys, for it is impure.' Thus the pots were turned upside down while the (donkeys') meat was boiling in them.  

البخاري:٥٥٢٨حَدَّثَنَا مُحَمَّدُ بْنُ سَلاَمٍ أَخْبَرَنَا عَبْدُ الْوَهَّابِ الثَّقَفِيُّ عَنْ أَيُّوبَ عَنْ مُحَمَّدٍ عَنْ أَنَسِ بْنِ مَالِكٍ ؓ

أَنَّ رَسُولَ اللَّهِ ﷺ جَاءَهُ جَاءٍ فَقَالَ أُكِلَتِ الْحُمُرُ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أُكِلَتِ الْحُمُرُ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أُفْنِيَتِ الْحُمُرُ فَأَمَرَ مُنَادِيًا فَنَادَى فِي النَّاسِ إِنَّ اللَّهَ وَرَسُولَهُ يَنْهَيَانِكُمْ عَنْ لُحُومِ الْحُمُرِ الأَهْلِيَّةِ فَإِنَّهَا رِجْسٌ فَأُكْفِئَتِ الْقُدُورُ وَإِنَّهَا لَتَفُورُ بِاللَّحْمِ  

muslim:1940bMuḥammad b. Minhāl al-Ḍarīr > Yazīd b. Zurayʿ > Hishām b. Ḥassān > Muḥammad b. Sīrīn > Anas b. Mālik

When it was the Day of Khaibar a visitor came and said: Messenger of Allah, the asses have been eaten. Then another came and said: Messenger of Allah, the asses are being destroyed. Then Messenger of Allah ﷺ commanded Abu Talha to make an announcement that Allah and His Messenger have prohibited you (from eating) of the flesh of (domestic) asses, for these are loathsome or impure. He (the narrator) said: The earthein pots were turned over along with what was in them.  

مسلم:١٩٤٠bحَدَّثَنَا مُحَمَّدُ بْنُ مِنْهَالٍ الضَّرِيرُ حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ حَدَّثَنَا هِشَامُ بْنُ حَسَّانَ عَنْ مُحَمَّدِ بْنِ سِيرِينَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

لَمَّا كَانَ يَوْمُ خَيْبَرَ جَاءَ جَاءٍ فَقَالَ يَا رَسُولَ اللَّهِ أُكِلَتِ الْحُمُرُ ثُمَّ جَاءَ آخَرُ فَقَالَ يَا رَسُولَ اللَّهِ أُفْنِيَتِ الْحُمُرُ فَأَمَرَ رَسُولُ اللَّهِ ﷺ أَبَا طَلْحَةَ فَنَادَى إِنَّ اللَّهَ وَرَسُولَهُ يَنْهَيَانِكُمْ عَنْ لُحُومِ الْحُمُرِ فَإِنَّهَا رِجْسٌ أَوْ نَجِسٌ قَالَ فَأُكْفِئَتِ الْقُدُورُ بِمَا فِيهَا