Sahih al-Bukhari
Sahih al-Bukhari 5281
A female slave, whose husband is a slave, has the option to keep him or leave him (when she is manumitted).
Arabic hadith text
حَدَّثَنَا عَبْدُ الأَعْلَى بْنُ حَمَّادٍ، حَدَّثَنَا وُهَيْبٌ، حَدَّثَنَا أَيُّوبُ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ ذَاكَمُغِيثٌ عَبْدُ بَنِي فُلاَنٍ ـ يَعْنِي زَوْجَ بَرِيرَةَ ـ كَأَنِّي أَنْظُرُ إِلَيْهِ يَتْبَعُهَا فِي سِكَكِ الْمَدِينَةِ، يَبْكِي عَلَيْهَا.
Translation
Narrated Ibn `Abbas
That was Mughith, the slave of Bani so-and-so, i.e., Barira's husband as if I am now looking at him following her (Barira) along the streets of Medina.