that the Messenger of Allah (ﷺ) set Safiyyah free, and made her ransom her dowry, and he married her.
Sunan Ibn Majah Book 9, Hadith 114