"We went out with the Messenger of Allah on the Farewell pilgrimage, and they said : 'O Messenger of Allah, ﷺ celibacy has become too difficult for us'. He said : 'Then make temporary marriages with these women'. So we went to them, but they insisted on setting a fixed time between us and them. They mentioned that to the Prophet and he said : 'Set a fixed time between you and them.' So I went out with a cousin of mine. He had a cloak and I had a cloak, but his cloak was finer than mine, and I was younger than him. We came to a women and she said: 'One cloak is like another.' So I married her and stayed with her that night. Then the next day I saw the Messenger of Allah standing between the Rukn (corner) and the door (of the Ka'bah), saying : 'O people, I had permitted temporary marriage for you, but Allah has forbidden it until the Day of Resurrection. however had any temporary wives, he should let them go, and do not take back anything that you had given to them.' " (Using translation from Ibn Mājah 1962)
أَنَّهُمْ سَارُوا مَعَ رَسُولِ اللَّهِ ﷺ فِي حِجَّةِ الْوَدَاعِ فَقَالَ «اسْتَمْتِعُوا مِنْ هَذِهِ النِّسَاءِ» وَالِاسْتِمْتَاعُ عِنْدَنَا التَّزْوِيجُ فَعَرَضْنَا ذَلِكَ عَلَى النِّسَاءِ فَأَبَيْنَ أَنْ لَا يَضْرِبنَ بَيْنَنَا وَبَيْنَهُنَّ أَجَلًا فَقَالَ رَسُولُ اللَّهِ ﷺ «افْعَلُوا» فَخَرَجْتُ أَنَا وَابْنُ عَمٍّ لِي مَعَهُ بُرْدٌ وَمَعِي بُرْدٌ وَبُرْدُهُ أَجْوَدُ مِنْ بُرْدِي وَأَنَا أَشَبُّ مِنْهُ فَأَتَيْنَا عَلَى امْرَأَةٍ فَأَعْجَبَهَا شَبَابِي وَأَعْجَبَهَا بُرْدُهُ فَقَالَتْ بُرْدٌ كَبُرْدٍ وَكَانَ الْأَجَلُ بَيْنِي وَبَيْنَهَا عَشْرًا فَبِتُّ عِنْدَهَا تِلْكَ اللَّيْلَةَ ثُمَّ غَدَوْتُ فَإِذَا رَسُولُ اللَّهِ ﷺ قَائِمٌ بَيْنَ الرُّكْنِ وَالْبَابِ فَقَالَ «يَا أَيُّهَا النَّاسُ إِنِّي قَدْ كُنْتُ أَذِنْتُ لَكُمْ فِي الِاسْتِمْتَاعِ مِنَ النِّسَاءِ أَلَا وَإِنَّ اللَّهَ قَدْ حَرَّمَهُ إِلَى يَوْمِ الْقِيَامَةِ فَمَنْ كَانَ عِنْدَهُ مِنْهُنَّ شَيْءٌ فَلْيُخَلِّ سَبِيلَهَا وَلَا تَأْخُذُوا مِمَّا آتَيْتُمُوهُنَّ شَيْئًا»