Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:25564ʿAbd al-Raḥman > Sufyān > Manṣūr > Ibrāhīm > al-Aswad > ʿĀʾishah > Āshtarat Barīrah

[Machine] I said, "O Messenger of Allah, should I buy Barirah and stipulate loyalty on behalf of them?" He said, "Buy, for loyalty belongs only to those whom the favor is given or to those whom have been freed."  

أحمد:٢٥٥٦٤حَدَّثَنَا عَبْدُ الرَّحْمَنِ عَنْ سُفْيَانَ عَنْ مَنْصُورٍ عَنْ إِبْرَاهِيمَ عَنِ الْأَسْوَدِ عَنْ عَائِشَةَ أَنَّهَا اشْتَرَتْ بَرِيرَةَ قَالَتْ

قُلْتُ يَا رَسُولَ اللهِ أَشْتَرِي بَرِيرَةَ وَأَشْتَرِطُ لَهُمُ الْوَلَاءَ؟ قَالَ اشْتَرِي فَإِنَّمَا الْوَلَاءُ لِمَنْ وَلِيَ النِّعْمَةَ أَوْ لِمَنْ أَعْتَقَ