Sahih al-Bukhari 5524
Sahih al-Bukhari · Book 72: Hunting, Slaughtering · The meat of donkeys
Narrated Jabir bin `Abdullah:
حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ ، حَدَّثَنَا حَمَّادٌ ، عَنْ عَمْرٍو ، عَنْ مُحَمَّدِ بْنِ عَلِيٍّ ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ، قَالَ نَهَى النَّبِيُّ صلى الله عليه وسلم يَوْمَ خَيْبَرَ عَنْ لُحُومِ الْحُمُرِ، وَرَخَّصَ فِي لُحُومِ الْخَيْلِ.
The Prophet (ﷺ) prohibited the eating of donkey's meat on the day of the battle of Khaibar, and allowed the eating of horse flesh.