Musnad Ahmad 3986
Grading supplied with this record: lts isnad is saheeh, al-Bukhari (5075) and Muslim (1404)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that ‘Abdullah said:
We used to go on campaigns with the Messenger of Allah (ﷺ) and we had no wives with us. We said: O Messenger of Allah, can we not castrate ourselves? But he forbade us to do that. Then after that we were granted a concession allowing us to marry a woman in return for a garment for a limited time. Then `Abdullah recited: “O you who believe! Make not unlawful the Tayyihut (all that is good as regards foods, things, deeds, beliefs, persons) which Allah has made lawful to you, and transgress not. Verily, Allah does not like the transgressors" (al-Ma'idah 5:87].
Full reference and source
Musnad Ahmad 3986 Arabic/English book : Book 26, Hadith 3986
View source on Sunnah.com (opens in a new tab)