Sunan an-Nasa'i, Book 27, Hadith 62 (In-Book) ⓘ
It was narrated from 'Aishah that she wanted to buy Barirah, but her masters stipulated that her Wala' should go to them. She mentioned that to the Prophet and he said: "Buy her and set her free, for Al-Wala' is to the one who sets the slave free." Some meat was brought and it was said: "This is some of that which was given in charity to Barirah." He said: "It is charity for her and a gift for us." And the Messenger of Allah gave her the choice, and her husband was a free man.
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، عَنْ عَبْدِ الرَّحْمَنِ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَائِشَةَ، أَنَّهَا أَرَادَتْ أَنْ تَشْتَرِيَ، بَرِيرَةَ فَاشْتَرَطُوا وَلاَءَهَا فَذَكَرْتُ ذَلِكَ لِلنَّبِيِّ صلى الله عليه وسلم فَقَالَ " اشْتَرِيهَا وَأَعْتِقِيهَا فَإِنَّ الْوَلاَءَ لِمَنْ أَعْتَقَ " . وَأُتِيَ بِلَحْمٍ فَقِيلَ إِنَّ هَذَا مِمَّا تُصُدِّقَ بِهِ عَلَى بَرِيرَةَ . فَقَالَ " هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ " . وَخَيَّرَهَا رَسُولُ اللَّهِ صلى الله عليه وسلم وَكَانَ زَوْجُهَا حُرًّا .
also referenced under: Hadith 3450 (Reference) & Volume 4, Book 27, Hadith 3480 (DarusSalam)