she wanted to buy Barirah and set her free, but they stipulated that her loyally as a freed slave (wala') should be to them. She mentioned that to the Messenger of Allah and he said: "Buy her and set her fee, and loyally is due to the one who frees the slave." She was given the choice when she was freed. Some meat was brought to the Messenger of Allah and it was said: "This is something that is given in charity to Barirah." He said: "It is charity for her and gift for us." And her husband was a free man. (Using translation from Nasāʾī 2614)
أَنْ يَشْتَرِطُوا وَلَاءَهَا فَذَكَرَتْ ذَلِكَ لِرَسُولِ اللهِ ﷺ فَقَالَ اشْتَرِيهَا فَإِنَّمَا الْوَلَاءُ لِمَنْ أَعْتَقَ وَخَيَّرَهَا مِنْ زَوْجِهَا وَكَانَ زَوْجُهَا حُرًّا وَأُتِيَ النَّبِيُّ ﷺ بِلَحْمٍ فَقِيلَ هَذَا مَا تُصُدِّقَ بِهِ عَلَى بَرِيرَةَ فَقَالَ هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ