Sahih Muslim, Book 16, Hadith 29 (Muslim 3395)

Rabi' b. Sabra reported on the authority of his father that Allah's Apostle (ﷺ) prohibited the contracting of temporary marriage.