Imran bin Husayn reported,

The verse permitting temporary marriage was revealed in the Book of Allah, and we acted upon it with the Messenger of Allah ﷺ. No Quranic revelation came down forbidding it, nor did he prohibit it until he died. Then a man said whatever he wished according to his own opinion.

Azami 4934

Sahih

عن عمران بن حصين، قال

أنزلت آية المنعة في كتاب الله ففعلناها مع رسول الله ﷺ، ولم ينزل قرآن يحرمه ولم ينه عنها حتى مات قال رجل برأيه ما شاء.

الأعظمي 4934صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Those who said that converting Hajj to Umrah is for all people until the Day of Resurrection for those who did not bring a sacrificial animal, and that it was not abrogated
Numbering
Jami al-Kamil 4934 (2nd edition)
Azami 4934