Sabra al-Juhanni reported on the authority of his father that the Messenger of Allah, peace be upon him, prohibited temporary marriage and he said, “Behold, it is forbidden from this day of yours until the Day of Resurrection, but whoever has given something (as dowry) should not take it back.”
[Sahih Muslim, Book 8, Number 3262]
سَبْرَةَ الْجُهَنِيُّ، عَنْ أَبِيهِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنِ الْمُتْعَةِ وَقَالَ أَلاَ إِنَّهَا حَرَامٌ مِنْ يَوْمِكُمْ هَذَا إِلَى يَوْمِ الْقِيَامَةِ وَمَنْ كَانَ أَعْطَى شَيْئًا فَلاَ يَأْخُذْهُ
(صحيح مسلم كِتَاب النِّكَاحِ إنها كانت رخصة في أول الإسلام لمن اضطر إليه)