Al-Ilmam bi-Ahadith al-Ahkam 986
وَرَوَى مُسلم من حَدِيث الرّبيع بن سُبْرَة الْجُهَنِيّ، أَن أَبَاهُ حَدثهُ أَنه كَانَ مَعَ رَسُول الله ﷺ فَقَالَ: " يَا أَيهَا النَّاس إِنِّي قد كنت أَذِنت لكم فِي الِاسْتِمْتَاع من النِّسَاء، وَإِن الله قد حرم ذَلِك إِلَى يَوْم الْقِيَامَة فَمن كَانَ عِنْده مِنْهُنَّ شَيْء فَلْيخل سَبيله، وَلَا تَأْخُذُوا مِمَّا آتَيْتُمُوهُنَّ شَيْئا ". [وَعِنْده أَيْضا فِي رِوَايَة أُخْرَى: أَن رَسُول الله ﷺ نهَى يَوْم الْفَتْح عَن مُتْعَة النِّسَاء] .
And Muslim narrated from the hadith of ar-Rabiʿ ibn Sabrah al-Juhani that his father narrated to him that he was with the Messenger of Allah ﷺ, and he said: "O people, I had permitted you temporary marriage with women, and Allah has forbidden that until the Day of Resurrection. So whoever has any of them with him, let him let her go, and do not take back anything of what you have given them." [And in his book also, in another narration: The Messenger of Allah ﷺ forbade temporary marriage with women on the day of the Conquest.]