(3) باب نِكَاحِ الْمُتْعَةِ وَبَيَانِ أَنَّهُ أُبِيحَ ثُمَّ نُسِخَ ثُمَّ أُبِيحَ ثُمَّ نُسِخَ وَاسْتَقَرَّ تَحْرِيمُهُ إِلَى يَوْمِ الْقِيَامَةِ
Iyas b. Salama reported on the authority of his father that Allah's Messenger (ﷺ) gave sanction for contracting temporary marriage for three nights in the year of Autas 1847 and then forbade it.
Reference: Sahih Muslim 1405 f
In-book reference: Book 16, Hadith 21
USC-MSA web (English) reference(deprecated numbering scheme): Book 8, Hadith 3251