It is narrated from Ali bin Abi Talib (may Allah be pleased with him) that on the day of Khaybar, the Messenger of Allah (ﷺ) forbade temporary marriage with women and eating the meat of domestic donkeys.
Hadith Referenceمسند الإمام الشافعي / كتاب النكاح / 1159