Sahih al-Bukhari 5281
Sahih al-Bukhari · Book 68: Divorce · A female slave, whose husband is a slave, has the option to keep him or leave him (when she is manumitted).
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.