It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he said: "We went out with the Messenger of Allah (peace and blessings be upon him) on the expedition of Tabuk, and we halted at Thaniyyat al-Wada'. There the Messenger of Allah (peace and blessings be upon him) saw some lamps and saw some women weeping, so he (peace and blessings be upon him) asked: 'What is this?' It was said: These are women with whom mut'ah marriage had been contracted, and now they are weeping (at the separation). So the Messenger of Allah (peace and blessings be upon him) said: 'Marriage, divorce, the waiting period ('iddah) and inheritance (their rulings) have made mut'ah unlawful (or he said: have abrogated it).'"
Imam Abu Ya'la al-Mawsili, Imam Ibn Hibban in his Sahih and Imam al-Bayhaqi in his Sunan recorded this hadith. Imam al-Tirmidhi said in Jami' al-Tirmidhi that in this chapter there are narrations from Sayyiduna Sabrah al-Juhani and Sayyiduna Abu Hurayrah (may Allah be pleased with them both), and that the practice of the Companions of the Prophet (peace and blessings be upon him) and other people of knowledge is according to this; and as for what was narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) about the concession of mut'ah, he too retracted it when he was informed of the (prohibiting) statement of the Prophet (peace and blessings be upon him). The position of most of the people of knowledge is that mut'ah is unlawful, and this is the view of Imam Sufyan al-Thawri, Ibn al-Mubarak, al-Shafi'i, Ahmad and Ishaq (may Allah have mercy on them).