Sahih Muslim, Book 16, Hadith 19 (Muslim 3385)

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 (ﷺ) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith.