Language:
كتاب الطلاق
68
Divorce
(15)
Chapter: A female slave, whose husband is a slave, has the option to keep him or leave him (when she is manumitted).
(15)
باب خِيَارِ الأَمَةِ تَحْتَ الْعَبْدِ
Sahih al-Bukhari 5280

Narrated Ibn `Abbas:

I saw him as a slave, (namely, Barira's husband).

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، وَهَمَّامٌ، عَنْ قَتَادَةَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ رَأَيْتُهُ عَبْدًا يَعْنِي زَوْجَ بَرِيرَةَ‏.‏
Reference : Sahih al-Bukhari 5280
In-book reference : Book 68, Hadith 29
USC-MSA web (English) reference : Vol. 7, Book 63, Hadith 203
  (deprecated numbering scheme)