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

Sunan Abi Dawud Book 12, Hadith 28