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)
أَنَّ النَّبِيَّ ﷺ جَاءَهُ جَاءٍ فَقَالَ أَكَلْتُ الْحُمُرَ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أَكَلْتُ الْحُمُرَ ثُمَّ جَاءَهُ جَاءٍ فَقَالَ أُفْنِيَتِ الْحُمُرُ فَنَادَى مُنَادٍ فِي النَّاسِ إِنَّ اللهَ ﷻ وَرَسُولَهُ يَنْهَيَانِكُمْ عَنْ لُحُومِ الْحُمُرِ الْأَهْلِيَّةِ فَإِنَّهَا نَجَسٌ قَالَ فَأُكْفِئَتِ الْقُدُورُ وَإِنَّهَا لَتَفُورُ بِاللَّحْمِ