قَوْلُهُ تَعَالَى: {لَا تُحَرِّمُوا طَيِّبَاتِ مَا أَحَلَّ اللهُ لَكُمْ} [المائدة: 87]
We used to participate in the holy wars carried on by the Prophet ﷺ and we had no women (wives) with us. So we said (to the Prophet ﷺ ). "Shall we castrate ourselves?" But the Prophet ﷺ forbade us to do that and thenceforth he allowed us to marry a woman (temporarily) by giving her even a garment, and then he recited: "O you who believe! Do not make unlawful the good things which Allah has made lawful for you." (Using translation from Bukhārī 4615)
كُنَّا نَغْزُو مَعَ رَسُولِ اللهِ ﷺ وَلَيْسَ مَعَنَا نِسَاءٌ فَقُلْنَا يَا رَسُولَ اللهِ أَلَا نَسْتَخْصِي؟ فَنَهَانَا عَنْ ذَلِكَ وَرَخَّصَ لَنَا أَنْ نَنْكِحَ الْمَرْأَةَ بِالثَّوْبِ إِلَى أَجْلٍ ثُمَّ قَرَأَ {يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تُحَرِّمُوا طَيِّبَاتِ مَا أَحَلَّ اللهُ لَكُمْ} [المائدة 87]