Rabi bin Sabra reported,

He narrated that he was with the Messenger of Allah ﷺ when he said, "People, I had previously permitted you to enjoy temporary marriage with women, but Allah has now forbidden that until the Day of Resurrection. So whoever has any such woman with him must let her go, and do not take back anything of what you have given them."

Muslim 3422

Sahih

حدثنا محمد بن عبد الله بن نمير حدثنا أبي حدثنا عبد العزيز بن عمر حدثني

الربيع بن سبرة الجهني أن أباه

حدثه أنه كان مع رسول الله ﷺ فقال يا أيها الناس إني قد كنت أذنت لكم في الاستمتاع من النساء وإن الله قد حرم ذلك إلى يوم القيامة فمن كان عنده منهن شيء فليخل سبيله ولا تأخذوا مما آتيتموهن شيئا

مسلم 3422صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Marriage
Chapter
Temporary marriage and the explanation that it was permitted then abrogated, then permitted then abrogated, and its prohibition was established until the Day of Resurrection
Numbering
Darussalam 3422
Muslim 3422