It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that we used to practice Mut'ah with women during the time of the Prophet (peace and blessings be upon him), and Abu Bakr and Umar (may Allah be pleased with them), until later Umar (may Allah be pleased with him) forbade it.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 14268