Allah's Messenger (ﷺ) prohibited the contracting of temporary marriage and said: Behold, it is forbidden from this very day of yours to the Day of Resurrection, and he who has given something (as a dower) should not take it back.
Sahih Muslim Book 16, Hadith 33