Sahih al-Bukhari, Book 34, Hadith 175 (Bukhari 2147)

Narrated Anas:

Amongst the captives was Safiya. First she was given to Dihya Al-Kalbi and then to the Prophet.