BUKHARI 2578:
from Um Āshtaraṭūā And Lāʾahā Fadhukir Lilnnabī ﷺ —
I intended to buy Barirah but her masters stipulated that her Wala should be for them. When the Prophet was told about it, he said to me, "Buy and manumit her, as the Wala' is for the liberator." Once Barirah was given some meat, and the Prophet ﷺ asked, "What is this?" I said, "It has been given to Barirah in charity." He said, "It is sadaqa for her but a gift for us." Barirah was given the option (to stay with her husband or to part with him). ʿAbdur-Rahman (a sub-narrator) wondered, "Was her husband a slave or a free man?" Shuʿba (another sub-narrator) said, "I asked ʿAbdur-Rahman whether her husband was a slave or a free man. He replied that he did not know whether he was a slave or a free man."
البخاري ٢٥٧٨:
عن ام اشترطوا و لاءها فذكر للنبي ﷺ —
أَنْ تَشْتَرِيَ بَرِيرَةَ وَأَنَّهُمُ اشْتَرَطُوا وَلاَءَهَا فَذُكِرَ لِلنَّبِيِّ ﷺ فَقَالَ النَّبِيُّ ﷺ اشْتَرِيهَا فَأَعْتِقِيهَا فَإِنَّمَا الْوَلاَءُ لِمَنْ أَعْتَقَ وَأُهْدِيَ لَهَا لَحْمٌ فَقِيلَ لِلنَّبِيِّ ﷺ هَذَا تُصُدِّقَ عَلَى بَرِيرَةَ فَقَالَ النَّبِيُّ ﷺ هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ وَخُيِّرَتْ قَالَ عَبْدُ الرَّحْمَنِ زَوْجُهَا حُرٌّ أَوْ عَبْدٌ قَالَ شُعْبَةُ سَأَلْتُ عَبْدَ الرَّحْمَنِ عَنْ زَوْجِهَا قَالَ لاَ أَدْرِي أَحُرٌّ أَمْ عَبْدٌ
hadithunlocked.com