Jabir bin Abdullah and Salama bin Akwa reported,

We were on a military expedition when the Messenger of Allah ﷺ came to us and said, "You have been permitted to engage in mutah, so do so."Muslim adds, meaning the temporary marriage with women.

Azami 6465

Sahih

عن جابر بن عبد الله وسلمة بن الأكوع قالا

كنا في جيش، فأتانا رسول الله ﷺ فقال: إنه قد أذن لكم أن تستمتعوا فاستمتعوا. زاد مسلم: يعني متعة النساء.

الأعظمي 6465صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Prohibited marriages in Islam
Section
Mutah marriage and the explanation of its abrogation
Numbering
Jami al-Kamil 6465 (2nd edition)
Azami 6465