The Messenger of Allah ﷺ prohibited temporary marriage with women on the day of Khaybar, and also prohibited the meat of domestic donkeys.
حدثنا محمد بن يحيى حدثنا بشر بن عمر حدثنا مالك بن أنس عن ابن شهاب عن عبد الله والحسن ابني محمد بن علي عن أبيهما
أن رسول الله ﷺ نهى عن متعة النساء يوم خيبر وعن لحوم الحمر الإنسية
Bukhari narrated it in the Book of Military Expeditions, Chapter on the Battle of Khaybar, no. 4216, and Muslim in the Chapter on Temporary Marriage and the Explanation That It Was Permitted, Then Prohibited, Then Permitted, Then Prohibited Again and Its Prohibition Was Made Permanent Until the Day of Judgment, no. 1407, from the hadith of Malik through this same chain, and it is also found in Muwatta, 2/542.