Mutʿah marriage was prohibited the year of the Conquest or the Farewell Ḥajj
the Messenger of Allah ﷺ prohibited mutʿah (temporary/pleasure) marriage in the year of the conquest ˹of Makkah.˺
نَهَى رَسُولُ اللهِ ﷺ عَنْ نِكَاحِ الْمُتْعَةِ عَامَ الْفَتْحِ