In response to a question about Mutah, Grand Ayatollah Khamenei responded and declared that Mutah (temporary marriage) is not only permissible but rather it is Mustahabb (highly recommended). Ayatollah Khameini said:
“Although mut‘ah marriage is permissible, or rather mustahabb [highly recommended] in our view, it is not obligatory in shar‘[iah].”
(Source: https://www.leader.ir/langs/EN/tree/39/view.php?parent=n6986&catid=39)