Sahih Muslim | Book 8 | Hadith Number 3246

Narrated by Jabir b. 'Abdullah and Salama b. al-Akwa'
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.