(3) باب نِكَاحِ الْمُتْعَةِ وَبَيَانِ أَنَّهُ أُبِيحَ ثُمَّ نُسِخَ ثُمَّ أُبِيحَ ثُمَّ نُسِخَ وَاسْتَقَرَّ تَحْرِيمُهُ إِلَى يَوْمِ الْقِيَامَةِ
'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: Sahih Muslim 1407 d
In-book reference: Book 16, Hadith 37
USC-MSA web (English) reference(deprecated numbering scheme): Book 8, Hadith 3266