From Sahih Muslim (Hadith 3434):
Ali (Allah be pleased with him) heard that Ibn Abbas (Allah be pleased with them) gave some relaxation in connection with the contracting of temporary marriage, whereupon he said:Don't be hasty (in your religious verdict), Ibn 'Abbas, for Allah's Messenger (ﷺ) on the Day of Khaibar prohibited that forever - along with the eating of flesh of domestic asses
Reference: Muslim 3434