Contract Marriage (Mutah)
As a principle Hadith donot add anything to religion as they donot include any context and are reporting of isolated event. However, There is another hadith which has prohibited the muta in sahih bukhari https://sunnah.com/bukhari:4216 . Although, according to Farahi school it was never allowed in first place. Go through this article https://ghamidi.tv/articles/concept-of-temporary-marriage-nikah-i-mutah-in-islam-1579 Chk following thread to read the principles for understanding hadith literature Discussion 1042