أَخْبَرَنَا الشَّافِعِيُّ رَضِيَ اللَّهُ عَنْهُ، قَالَ: أَخْبَرَنَا سُفْيَانُ، عَنْ إِسْمَاعِيلَ بْنِ أَبِي خَالِدٍ، عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ، قَالَ: سَمِعْتُ ابْنَ مَسْعُودٍ، يَقُولُ: كُنَّا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَلَيْسَ مَعَنَا نِسَاءٌ، فَأَرَدْنَا أَنْ نَخْتَصِيَ، فَنَهَانَا عَنْ ذَلِكَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثُمَّ رَخَّصَ لَنَا أَنْ نَنْكِحَ الْمَرْأَةَ إِلَى أَجَلٍ بِالشَّيْءِ.
Qais bin Abi Hazim narrated that I heard Ibn Mas'ud (may Allah be pleased with him) say: "We used to fight in jihad with the Messenger of Allah (ﷺ) and we did not have our wives with us, so we intended to become castrated. But the Messenger of Allah (ﷺ) forbade us from that, then he permitted us to marry women for a specified period in exchange for something (a dowry)."