(31) باب نَهْىِ رَسُولِ اللَّهِ صلى الله عليه وسلم عَنْ نِكَاحِ الْمُتْعَةِ آخِرًا
Narrated Jabir bin `Abdullah and Salama bin Al-Akwa`:
While we were in an army, Allah's Messenger (ﷺ) came to us and said, "You have been allowed to do the Mut'a (marriage), so do it."
Reference: Sahih al-Bukhari 5117, 5118
In-book reference: Book 67, Hadith 54
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 62, Hadith 52