It was narrated from al-Hasan and ‘Abdullah, the sons of Muhammad bin `Ali, from their father Muhammad bin `Ali that he heard his father, ‘Ali bin Abi Talib (رضي الله عنه), say to Ibn `Abbas, when he heard that he had permitted mut`ah marriage with women - `Ali bin Abi Talib (رضي الله عنه) said to him: The Messenger of Allah (ﷺ) forbade it on the day of Khaibar and the flesh of donkeys.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَنْبَأَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، عَنِ الْحَسَنِ، وَعَبْدِ اللَّهِ، ابْنَيْ مُحَمَّدِ بْنِ عَلِيٍّ عَنْ أَبِيهِمَا، مُحَمَّدِ بْنِ عَلِيٍّ أَنَّهُ سَمِعَ أَبَاهُ، عَلِيَّ بْنَ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ قَالَ لِابْنِ عَبَّاسٍ وَبَلَغَهُ أَنَّهُ رَخَّصَ فِي مُتْعَةِ النِّسَاءِ فَقَالَ لَهُ عَلِيُّ بْنُ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَدْ نَهَى عَنْهَا يَوْمَ خَيْبَرَ وَعَنْ لُحُومِ الْحُمُرِ الْأَهْلِيَّةِ.
sunnah.com