The Messenger of Allah (ﷺ) prohibited temporary marriage with women.

Sunan Abu Dawud Book 12 Hadith 28

Sunan Abu Dawud #2073

Marriage (Kitab Al-Nikah) 12:28

Rabi' b. Saburah reported on the authority of his father:

The Messenger of Allah (ﷺ) prohibited temporary marriage with women.

Chapter: Regarding Mut'ah Marriages