Mutʿah marriage was prohibited the year of the Conquest or the Farewell Ḥajj
BAYHAQI 14159:
from al-Rabīʿ b. Sabrah from his father —
the Messenger of Allah ﷺ prohibited mutʿah (temporary/pleasure) marriage in the year of the conquest ˹of Makkah.˺
البيهقي ١٤١٥٩:
عن الربيع بن سبره عن أبيه —
نَهَى رَسُولُ اللهِ ﷺ عَنْ نِكَاحِ الْمُتْعَةِ عَامَ الْفَتْحِ