Anas said “Captives were gathered at Khaibar. Dihyah came out and said “Apostle of Allaah ﷺ give me a slave girl from the captives.” He said “Go and take a slave girl. He took Safiyyah daughter of Huyayy. A man then came to the Prophet ﷺ and said “You gave Safiyyah daughter of Huyayy, chief lady of Quraizah and Al Nadir to Dihyah? This is according to the version of Ya’qub. Then the agreed version goes “she is worthy of you.” He said “call him along with her. When the Prophet ﷺ looked at her, he said to him “take another slave girl from the captives. The Prophet ﷺ then set her free and married her.
جُمِعَ السَّبْىُ يَعْنِي بِخَيْبَرَ فَجَاءَ دِحْيَةُ فَقَالَ يَا رَسُولَ اللَّهِ أَعْطِنِي جَارِيَةً مِنَ السَّبْىِ قَالَ اذْهَبْ فَخُذْ جَارِيَةً فَأَخَذَ صَفِيَّةَ بِنْتَ حُيَىٍّ فَجَاءَ رَجُلٌ إِلَى النَّبِيِّ ﷺ فَقَالَ يَا نَبِيَّ اللَّهِ أَعْطَيْتَ دِحْيَةَ قَالَ يَعْقُوبُ صَفِيَّةَ بِنْتَ حُيَىٍّ سَيِّدَةَ قُرَيْظَةَ وَالنَّضِيرِ ثُمَّ اتَّفَقَا مَا تَصْلُحُ إِلاَّ لَكَ قَالَ ادْعُوهُ بِهَا فَلَمَّا نَظَرَ إِلَيْهَا النَّبِيُّ ﷺ قَالَ لَهُ خُذْ جَارِيَةً مِنَ السَّبْىِ غَيْرَهَا وَإِنَّ النَّبِيَّ ﷺ أَعْتَقَهَا وَتَزَوَّجَهَا