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)
أَنْ يَشْتَرِطُوا وَلَاءَهَا فَذَكَرَتْ ذَلِكَ لِرَسُولِ اللَّهِ ﷺ فَقَالَ «اشْتَرِيهَا فَإِنَّمَا الْوَلَاءُ لِمَنْ أَعْتَقَ» فَاشْتَرَتْهَا فَأَعْتَقَتْهَا وَخَيَّرَهَا مِنْ زَوْجِهَا وَكَانَ حُرًّا وَأَنَّ النَّبِيَّ ﷺ أُتِيَ بِلَحْمٍ فَقَالَ مِنْ أَيْنَ هَذَا؟ قِيلَ تُصُدِّقَ بِهِ عَلَى بَرِيرَةَ فَقَالَ «هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ»