From Sahih Bukhari (Hadith 5117): 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