Sahih Muslim Book 8, Hadith Number 3249.

Chapter: Temporary marriage and its prohibition for all times to come.

Jabir b. ‘Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah’s Messenger (May peace be upon him) and during the time of Abu Bakr until ‘Umar forbade it in the case of ‘Amr b. Huraith.