that Barirah came to her when she was came to her when she was Muktabah, and her masters had written a contract of manumission for nine Uqiyyah. She (ʿAishah) said: “If your masters wish I will pay them that in one sum, and the right of inheritance will belong to me.” He said: “So she went to her masters and told them about that, but they insisted that the right of inheritance should belong to them. ʿAishah mentioned that to the Prophet ﷺ and he said: 'Do it.' Then the Prophet ﷺ stood up and addressed the people. He praised and glorified Allah (SWT), then he said: 'What is the matter with some people who stipulated conditions that are not in the Book of Allah (SWT)? Every conditions that is not in the Book of Allah (SWT) is invalid, even if there are one hundred conditions. The Book of Allah(SWT) is more deserving of being followed and the conditions of Allah (SWT) are more binding. And the Wala belongs to the one who manumits (the slave).” (Using translation from Ibn Mājah 2521)
أَنَّ بَرِيرَةَ أَتَتْهَا وَهِيَ مُكَاتَبَةٌ قَدْ كَاتَبَهَا أَهْلُهَا عَلَى تِسْعِ أَوَاقٍ فَقَالَتْ لَهَا إِنْ شَاءَ أَهْلُكِ عَدَدْتُهَا لَهُمْ عَدَّةً وَاحِدَةً وَكَانَ الْوَلَاءُ لِي فَأَتَتْ أَهْلَهَا فَذَكَرَتْ ذَلِكَ لَهُمْ فَأَبَوْا إِلَّا أَنْ يَشْتَرِطُوا الْوَلَاءَ لَهُمْ قَالَ فَذَكَرَتْهُ عَائِشَةُ لِلنَّبِيِّ ﷺ فَقَالَ افْعَلِي فَفَعَلَتْ فَقَامَ النَّبِيُّ ﷺ فَخَطَبَ النَّاسَ فَحَمِدَ اللهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ مَا بَالُ رِجَالٍ يَشْتَرِطُونَشُرُوطًا لَيْسَتْ فِي كِتَابِ اللهِ قَالَ كُلُّ شَرْطٍ لَيْسَ فِي كِتَابِ اللهِ فَهُوَ بَاطِلٌ كِتَابُ اللهِ أَحَقُّ وَشَرْطُهُ أَوْثَقُ وَالْوَلَاءُ لِمَنْ أَعْتَقَ