Abdullah bin Masud reported,

We used to go on military expeditions with the Messenger of Allah ﷺ without our wives, so we said, "Should we not castrate ourselves?" He forbade us from doing that, then permitted us to marry a woman in exchange for a garment for a fixed term.Then Abdullah recited, "O you who believe, do not forbid the good things that Allah has made lawful for you, and do not transgress. Indeed, Allah does not love the transgressors" [Maidah 5:87].

Azami 12274

Sahih

عن عبد الله بن مسعود قال

كنا نغزوا مع رسول الله ﷺ، ليس لنا نساء، فقلنا: ألا نستخصي؟ فنهانا عن ذلك، ثم رخص لنا أن ننكح المرأة بالثوب إلى أجل. ثم قرأ عبد الله: {يأيها الذين ءامنوا لا تحرموا طيبات ما أحل الله لكم ولا تعتدوا إن الله لا يحب المعتدين}.

الأعظمي 12274صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "What is above it. As for those who believe, they know that it is the truth from their Lord. But as for those who disbelieve, they say, 'What did Allah intend by this?'"
Numbering
Jami al-Kamil 12274 (2nd edition)
Azami 12274