On the day of Khaibar, Allah's Messenger (ﷺ) forbade the Mut'a (i.e. temporary marriage)…

Sahih al-Bukhari Book 64 Hadith 256

Sahih al-Bukhari #4216

Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) 64:256

Narrated `Ali bin Abi Talib:

On the day of Khaibar, Allah's Messenger (ﷺ) forbade the Mut'a (i.e. temporary marriage) and the eating of donkey-meat.

Chapter: Ghazwa of Khaibar

Grade: Sahih