The Messenger of Allah ﷺ permitted temporary marriage, so I and another man set out to a woman from the tribe of Banu Amir and offered ourselves to her.She asked, "What will you give me?"I said, "My cloak."My companion also said, "My cloak."My companion's cloak was finer than mine, but I was younger than him. Whenever she looked at my companion's cloak, it pleased her, and whenever she looked at me, I pleased her. Then she said, "You and your cloak are enough for me."So I stayed with her for three days. Then the Messenger of Allah ﷺ said, "Whoever has any of these women through temporary marriage, let him release her."
أخبرنا قتيبة قال حدثنا الليث
أذن رسول الله ﷺ بالمتعة فانطلقت أنا ورجل إلى امرأة من بني عامر فعرضنا عليها أنفسنا فقالت ما تعطيني فقلت ردائي وقال صاحبي ردائي وكان رداء صاحبي أجود من ردائي وكنت أشب منه فإذا نظرت إلى رداء صاحبي أعجبها وإذا نظرت إلي أعجبتها ثم قالت أنت ورداؤك يكفيني فمكثت معها ثلاثا ثم إن رسول الله ﷺ قال من كان عنده من هذه النساء اللاتي يتمتع فليخل سبيلها
Muslim recorded it in the Book of Marriage, in the chapter on the marriage of mutah and the explanation that it was permitted and then abrogated, etc., hadith no. 1406, from Qutayba, through him, and it is also found in Al-Kubra, hadith no. 555.