It was narrated from Rabi'bin Sabrah that his father said :
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.'