Language:
كتاب النكاح
67  
Wedlock, Marriage (Nikaah)
(32)
Chapter: Allah's Messenger (saws) prohibited Nikah-al-Mut'a lately.
(31)
باب نَهْىِ رَسُولِ اللَّهِ صلى الله عليه وسلم عَنْ نِكَاحِ الْمُتْعَةِ آخِرًا
Sahih al-Bukhari 5119
Salama bin Al-Akwa` said:
Allah's Messenger (ﷺ)'s said, "If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so." I do not know whether that was only for us or for all the people in general. Abu `Abdullah (Al-Bukhari) said: `Ali made it clear that the Prophet said, "The Mut'a marriage has been cancelled (made unlawful).
وَقَالَ ابْنُ أَبِي ذِئْبٍ حَدَّثَنِي إِيَاسُ بْنُ سَلَمَةَ بْنِ الأَكْوَعِ، عَنْ أَبِيهِ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم ‏ "‏ أَيُّمَا رَجُلٍ وَامْرَأَةٍ تَوَافَقَا فَعِشْرَةُ مَا بَيْنَهُمَا ثَلاَثُ لَيَالٍ فَإِنْ أَحَبَّا أَنْ يَتَزَايَدَا أَوْ يَتَتَارَكَا تَتَارَكَا ‏"‏‏.‏ فَمَا أَدْرِي أَشَىْءٌ كَانَ لَنَا خَاصَّةً أَمْ لِلنَّاسِ عَامَّةً‏.‏ قَالَ أَبُو عَبْدِ اللَّهِ وَبَيَّنَهُ عَلِيٌّ عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ مَنْسُوخٌ‏.‏
Reference : Sahih al-Bukhari 5119
In-book reference : Book 67, Hadith 55
USC-MSA web (English) reference : Vol. 7, Book 62, Hadith 52
  (deprecated numbering scheme)