“Barfah’s husband was a slave, so the Messenger of Allah let her chose, and she chose herself, and if he was a free man she would not have had a choice.”
Jami` at-Tirmidhi Book 12, Hadith 9