(3) باب نِكَاحِ الْمُتْعَةِ وَبَيَانِ أَنَّهُ أُبِيحَ ثُمَّ نُسِخَ ثُمَّ أُبِيحَ ثُمَّ نُسِخَ وَاسْتَقَرَّ تَحْرِيمُهُ إِلَى يَوْمِ الْقِيَامَةِ
Sabra al-Juhani reported on the authority of his father that while he was with Allah's Messenger (ﷺ) he said:
O people, I had permitted you to contract temporary marriage with women, but Allah has forbidden it (now) until the Day of Resurrection. So he who has any (woman with this type of marriage contract) he should let her off, and do not take back anything you have given to them (as dower).
Reference: Sahih Muslim 1406 d
In-book reference: Book 16, Hadith 25
USC-MSA web (English) reference(deprecated numbering scheme): Book 8, Hadith 3255