Qays narrates from Sayyiduna Abdullah (may Allah be pleased with him) that at the end of the hadith it says: "Then mut'ah marriage was abandoned."
(b) Ibn Uyaynah narrates from Isma'il, and at its end it says: "Then its prohibition came afterwards."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 14180