The Book of Marriage (Kitab Al-Nikah)

Muslim :: Book 8 : Hadith 3246

Jabir b. 'Abdullah and Salama b. al-Akwa' said: There came to us the proclaimer of Allah's Messenger (may peace be upon him) and said: Allah's Messenger (may peace be upon him) has granted you permission to benefit yourselves, i. e. to contract temporary marriage with women.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star