Sahih Muslim Book 8, Hadith Number 3261.
‘Urwa b. Zabair reported that ‘Abdullah b. Zubair (Allah be pleased with him) stood up (and delivered an address) in Mecca saying: Allah has made blind the hearts of some people as He has deprived them of eyesight that they give religious verdict in favour of temporary marriage, while he was alluding to a person (Ibn ‘Abbas). Ibn Abbas called him and said: You are an uncouth person, devoid of sense. By my life, Mut’a was practised during the lifetime of the leader of the pious (he meant Allah’s Messenger, May peace be upon him), and Ibn Zubair said to him: just do it yourselves, and by Allah, if you do that I will stone you with your stones. Ibn Shihab said, Khalid b. Muhajir b. Saifullah informed me: While I was sitting in the company of a person, a person came to him and he asked for a religious verdict about Mut’a and he permitted him to do it. Ibn Abu ‘Amrah al-Ansari (Allah be pleased with him) said to him: Be gentle. It was permitted in the early days of Islam, (for one) who was driven to it under the stress of necessity just as (the eating of) carrion and the blood and flesh of swine and then Allah intensified (the commands of) His religion and prohibited it (altogether). Ibn Shihab reported: Rabi’ b. Sabra told me that his father (Sabra) said: I contracted temporary marriage with a woman of Banu ‘Amir for two cloaks during the lifetime of Allah’s Messenger (May peace be upon him); then he forbade us to do Mut’a. Ibn Shihab said: I heard Rabi’ b. Sabra narrating it to Umar b. ‘Abd al-‘Aziz and I was sitting there.