كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(38)
Chapter: Ghazwa of Khaibar
(38)
باب غَزْوَةُ خَيْبَرَ
Sahih al-Bukhari 4200

Narrated Anas:

The Prophet (ﷺ) offered the Fajr Prayer near Khaibar when it was still dark and then said, "Allahu-Akbar! Khaibar is destroyed, for whenever we approach a (hostile) nation (to fight), then evil will be the morning for those who have been warned." Then the inhabitants of Khaibar came out running on the roads. The Prophet (ﷺ) had their warriors killed, their offspring and woman taken as captives. Safiya was amongst the captives, She first came in the share of Dahya Alkali but later on she belonged to the Prophet . The Prophet (ﷺ) made her manumission as her 'Mahr'.

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ صَلَّى النَّبِيُّ صلى الله عليه وسلم الصُّبْحَ قَرِيبًا مِنْ خَيْبَرَ بِغَلَسٍ ثُمَّ قَالَ ‏ "‏ اللَّهُ أَكْبَرُ خَرِبَتْ خَيْبَرُ، إِنَّا إِذَا نَزَلْنَا بِسَاحَةِ قَوْمٍ، فَسَاءَ صَبَاحُ الْمُنْذَرِينَ ‏"‏‏.‏ فَخَرَجُوا يَسْعَوْنَ فِي السِّكَكِ، فَقَتَلَ النَّبِيُّ صلى الله عليه وسلم الْمُقَاتِلَةَ، وَسَبَى الذُّرِّيَّةَ، وَكَانَ فِي السَّبْىِ صَفِيَّةُ، فَصَارَتْ إِلَى دِحْيَةَ الْكَلْبِيِّ، ثُمَّ صَارَتْ إِلَى النَّبِيِّ صلى الله عليه وسلم، فَجَعَلَ عِتْقَهَا صَدَاقَهَا‏.‏ فَقَالَ عَبْدُ الْعَزِيزِ بْنُ صُهَيْبٍ لِثَابِتٍ يَا أَبَا مُحَمَّدٍ آنْتَ قُلْتَ لأَنَسٍ مَا أَصْدَقَهَا فَحَرَّكَ ثَابِتٌ رَأْسَهُ تَصْدِيقًا لَهُ‏.‏
Reference : Sahih al-Bukhari 4200
In-book reference : Book 64, Hadith 240
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 512
  (deprecated numbering scheme)