Hadithcore
Hadith #2112390

Narrated Salamah bin al-Akwa' (RA):

In the year of Autas, Allah's Messenger (ﷺ) permitted Mut'a (temporary marriage) for three nights, then he prohibited (afterwards). [Reported by Muslim].

وَعَنْ سَلَمَةَ بْنِ الْأَكْوَعِ ‏- رضى الله عنه ‏- قَالَ : { رَخَّصَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-عَامَ أَوْطَاسٍ فِي اَلْمُتْعَةِ , ثَلَاثَةَ أَيَّامٍ , ثُمَّ نَهَى عَنْهَا } رَوَاهُ مُسْلِمٌ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 8, Hadith 33
Arabic/English book reference
Book 8, Hadith 1003