كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(38)
Chapter: Ghazwa of Khaibar
(38)
باب غَزْوَةُ خَيْبَرَ
Sahih al-Bukhari 4227

Narrated Ibn `Abbas:

I do not know whether the Prophet (ﷺ) forbade the eating of donkey-meat (temporarily) because they were the beasts of burden for the people, and he disliked that their means of transportation should be lost, or he forbade it on the day of Khaibar permanently.

حَدَّثَنِي مُحَمَّدُ بْنُ أَبِي الْحُسَيْنِ، حَدَّثَنَا عُمَرُ بْنُ حَفْصٍ، حَدَّثَنَا أَبِي، عَنْ عَاصِمٍ، عَنْ عَامِرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ لاَ أَدْرِي أَنَهَى عَنْهُ رَسُولُ اللَّهِ صلى الله عليه وسلم مِنْ أَجْلِ أَنَّهُ كَانَ حَمُولَةَ النَّاسِ، فَكَرِهَ أَنْ تَذْهَبَ حَمُولَتُهُمْ، أَوْ حَرَّمَهُ فِي يَوْمِ خَيْبَرَ، لَحْمَ الْحُمُرِ الأَهْلِيَّةِ‏.‏
Reference : Sahih al-Bukhari 4227
In-book reference : Book 64, Hadith 265
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 536
  (deprecated numbering scheme)