Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:1406fIsḥāq b. Ibrāhīm > Yaḥyá b. Ādam > Ibrāhīm b. Saʿd > ʿAbd al-Malik b. al-Rabīʿ b. Sabrah al-Juhanī from his father from his grandfather

'Abd al-Malik b. Rabi' b. Sabraal-Juhanni reported on the authority of his father who narrated it on the authority of his father (i e. 'Abd al-Malik's grandfather, Sabura al-Juhanniy Messenger of Allah ﷺ permitted us to contract temporary marriage in the Year of Victory, as we entered Mecca, and we did come out of it but he forbade us to do it.  

مسلم:١٤٠٦fحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ أَخْبَرَنَا يَحْيَى بْنُ آدَمَ حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ عَنْ عَبْدِ الْمَلِكِ بْنِ الرَّبِيعِ بْنِ سَبْرَةَ الْجُهَنِيِّ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

أَمَرَنَا رَسُولُ اللَّهِ ﷺ بِالْمُتْعَةِ عَامَ الْفَتْحِ حِينَ دَخَلْنَا مَكَّةَ ثُمَّ لَمْ نَخْرُجْ مِنْهَا حَتَّى نَهَانَا عَنْهَا  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:14151[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-ʿAbbās b. Muḥammad al-Dūrī > Zayd b. al-Ḥubāb > ʿAbd al-Malik b. al-Rabīʿ b. Sabrah [Chain 2] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Faḍl b. Ibrāhīm > Aḥmad b. Salamah > Isḥāq b. Ibrāhīm > Yaḥyá b. Ādam > Ibrāhīm b. Saʿd > ʿAbd al-Malik b. al-Rabīʿ b. Sabrah from his father from his grandfather

[Machine] The Messenger of Allah ﷺ commanded us to practice Mut'ah during the year of the Conquest when we entered Makkah, and we did not refrain from it until he prohibited it, as mentioned in the Hadith of Ibrahim.  

البيهقي:١٤١٥١أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْعَبَّاسُ بْنُ مُحَمَّدٍ الدُّورِيُّ ثنا زَيْدُ بْنُ الْحُبَابِ ثنا عَبْدُ الْمَلِكِ بْنُ الرَّبِيعِ بْنِ سَبْرَةَ ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْفَضْلِ بْنُ إِبْرَاهِيمَ ثنا أَحْمَدُ بْنُ سَلَمَةَ ثنا إِسْحَاقُ بْنُ إِبْرَاهِيمَ ثنا يَحْيَى بْنُ آدَمَ ثنا إِبْرَاهِيمُ بْنُ سَعْدٍ عَنْ عَبْدِ الْمَلِكِ بْنِ الرَّبِيعِ بْنِ سَبْرَةَ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

أَمَرَنَا رَسُولُ اللهِ ﷺ بِالْمُتْعَةِ عَامَ الْفَتْحِ حِينَ دَخَلْنَا مَكَّةَ ثُمَّ لَمْ نَخْرُجْ مِنْهَا حَتَّى نَهَى عَنْهُ لَفْظُ حَدِيثِ إِبْرَاهِيمَ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ إِسْحَاقَ بْنِ إِبْرَاهِيمَ