Barirah came to seek my help regarding her manumission (freedom). I told herself you like I would pay your price to your masters but your Wala' (allegiance) would be for me." Her masters said, "If you like, you can pay what remains (of the price of her manumission), (Sufyan the sub-narrator once said), or if you like you can manumit her, but her (inheritance) Al-Wala would be for us. "When Messenger of Allah ﷺ came, I spoke to him about it. He said, "Buy her and manumit her. No doubt Al-Wala' is for the manumitted." Then Messenger of Allah ﷺ stood on the pulpit (or Messenger of Allah ﷺ ascended the pulpit as Sufyan once said), and said, "What about some people who impose conditions which are not present in Allah's Book (Laws)? Whoever imposes conditions which are not in Allah's Book (Laws), his conditions will be invalid even if he imposed them a hundred times."
إِنْ شِئْتِ أَعْطَيْتُ أَهْلَكِ وَيَكُونُ الْوَلاَءُ لِي وَقَالَ أَهْلُهَا إِنْ شِئْتِ أَعْطَيْتِهَا مَا بَقِيَ وَقَالَ سُفْيَانُ مَرَّةً إِنْ شِئْتِ أَعْتَقْتِهَا وَيَكُونُ الْوَلاَءُ لَنَا فَلَمَّا جَاءَ رَسُولُ اللَّهِ ﷺ ذَكَّرَتْهُ ذَلِكَ فَقَالَ ابْتَاعِيهَا فَأَعْتِقِيهَا فَإِنَّ الْوَلاَءَ لِمَنْ أَعْتَقَ ثُمَّ قَامَ رَسُولُ اللَّهِ ﷺ عَلَى الْمِنْبَرِ وَقَالَ سُفْيَانُ مَرَّةً فَصَعِدَ رَسُولُ اللَّهِ ﷺ عَلَى الْمِنْبَرِ فَقَالَ مَا بَالُ أَقْوَامٍ يَشْتَرِطُونَ شُرُوطًا لَيْسَتْ فِي كِتَابِ اللَّهِ مَنِ اشْتَرَطَ شَرْطًا لَيْسَ فِي كِتَابِ اللَّهِ فَلَيْسَ لَهُ وَإِنِ اشْتَرَطَ مِائَةَ مَرَّةٍ قَالَ عَلِيٌّ قَالَ يَحْيَى وَعَبْدُ الْوَهَّابِ عَنْ يَحْيَى عَنْ عَمْرَةَ وَقَالَ جَعْفَرُ بْنُ عَوْنٍ عَنْ يَحْيَى قَالَ سَمِعْتُ عَمْرَةَ قَالَتْ سَمِعْتُ عَائِشَةَ رَوَاهُ مَالِكٌ عَنْ يَحْيَى عَنْ عَمْرَةَ أَنَّ بَرِيرَةَ وَلَمْ يَذْكُرْ صَعِدَ الْمِنْبَرَ