From Sahih Muslim (Hadith 3416):
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
Reference: Muslim 3416