The Prophet ﷺ prohibited temporary marriage with women and the eating of domestic donkey meat during the time of Khaybar.
حدثنا ابن أبي عمر حدثنا سفيان عن الزهري عن عبد الله والحسن ابني محمد بن علي عن أبيهما
أن النبي ﷺ نهى عن متعة النساء وعن لحوم الحمر الأهلية زمن خيبر
Agreed upon [by Bukhari and Muslim]. Bukhari narrated it in the Book of Marriage, chapter on the Prophet's final prohibition of temporary marriage, no. 5115, and Muslim, no. 1407, from the hadith of Sufyan bin Uyayna, with this wording.On this subject there are also narrations from Sabra Juhani [Muslim, no. 1406] and Abu Hurairah [Daraqutni 4/259 and Ibn Hibban, no. 1267].