Sahih Muslim Book 8, Hadith Number 3246.
Chapter: Temporary marriage and its prohibition for all times to come.
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.