كتاب النكاح
16  
The Book of Marriage
(3)
Chapter: Mut'ah Marriage: It was permitted then abrograted, then permitted then abrogated, and it will remain Forbidden until the day of resurrection
(3)
باب نِكَاحِ الْمُتْعَةِ وَبَيَانِ أَنَّهُ أُبِيحَ ثُمَّ نُسِخَ ثُمَّ أُبِيحَ ثُمَّ نُسِخَ وَاسْتَقَرَّ تَحْرِيمُهُ إِلَى يَوْمِ الْقِيَامَةِ
Sahih Muslim 1405 d

Jabir b. 'Abdullah reported:

We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (ﷺ) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith.
حَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا ابْنُ جُرَيْجٍ، أَخْبَرَنِي أَبُو الزُّبَيْرِ، قَالَ سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ، يَقُولُ كُنَّا نَسْتَمْتِعُ بِالْقُبْضَةِ مِنَ التَّمْرِ وَالدَّقِيقِ الأَيَّامَ عَلَى عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم وَأَبِي بَكْرٍ حَتَّى نَهَى عَنْهُ عُمَرُ فِي شَأْنِ عَمْرِو بْنِ حُرَيْثٍ ‏.‏
Reference : Sahih Muslim 1405d
In-book reference : Book 16, Hadith 19
USC-MSA web (English) reference : Book 8, Hadith 3249
  (deprecated numbering scheme)