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