Al-Rabi' bin Sabrah (may Allah have mercy on him) said that his father (may Allah be pleased with him) went out with the Messenger of Allah (peace and blessings be upon him) on the Farewell Hajj, and they camped at a place called Usfan. A man of Banu Mudlij stood up, Suraqah bin Malik or Malik bin Suraqah (may Allah be pleased with him), and said: O Messenger of Allah, give a ruling as though they had been born today. The Messenger of Allah (peace and blessings be upon him) said: "Allah has included Umrah in the Hajj. When you come to Makkah, after circling the House (tawaf) and going between Safa and Marwah you are released from ihram, except whoever has brought his sacrificial animal with him; he is not released." When we were released from ihram, he said: "Make mut'ah with women." And mut'ah, in our view, is marriage. We proposed it to the women, and they demanded a fixed term. We mentioned that to the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) said: "Do so." He said: My cousin and I went out; we had cloaks, and his cloak was finer than mine, and I was more handsome than him. We came to a woman, and she liked my handsomeness and youth, and his cloak. She said: A cloak is like a cloak. So a term of ten days was fixed between me and her. I spent the night with her. In the morning I went to the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) was standing between the Corner and the Station of Ibrahim, saying: "O people, I had permitted you mut'ah marriage with women, but now I make it unlawful until the Day of Resurrection. Whoever has anything of these women remaining with him, let him set her free, and do not take back anything."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 14155