Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) said: "The Messenger of Allah (peace and blessings be upon him) permitted us mut'ah (temporary marriage) only because of a severe need that the people faced; then later he forbade it."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5674