Hadithcore
Sahih Muslim, 1407 b
sahih

Malik narrated this hadith on the authority of the same chain of trans- witters that 'Ali b. Abil Talib said to a person:

You are a person led astray; Allah's Messenger (ﷺ) forbade us (to do Mut'a), as is stated In the hadith transmitted on the authority of Yahya b. Malik.

وَحَدَّثَنَاهُ عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ أَسْمَاءَ الضُّبَعِيُّ، حَدَّثَنَا جُوَيْرِيَةُ، عَنْ مَالِكٍ، بِهَذَا الإِسْنَادِ وَقَالَ سَمِعَ عَلِيَّ بْنَ أَبِي طَالِبٍ، يَقُولُ لِفُلاَنٍ إِنَّكَ رَجُلٌ تَائِهٌ نَهَانَا رَسُولُ اللَّهِ صلى الله عليه وسلم ‏.‏ بِمِثْلِ حَدِيثِ يَحْيَى بْنِ يَحْيَى عَنْ مَالِكٍ ‏.‏

References2 variants
In-Book Reference
Book 16, Hadith 35
USC-MSA web (English) reference
Book 8, Hadith 3264 (deprecated numbering scheme)