English translation
657. Narrated 'Aisha ؓ: Barira[4] came
to her and said, "I had arranged[1] to buy my freedom for nine Uqiya; one Uqiya to be paid annually, so help me." Aisha رضي الله عنها replied, "If your people are pleased that I should pay (the amount) to them, and I shall have the right to inherit from you, I shall do so." Barira went to her people and told them about it, but they refused the offer. When she came back Allāh's Messenger ﷺ was sitting (in the house). She said, "I offered that to them, but they insisted that the right to inherit from me[2] should be theirs." The Prophet ﷺ heard that and 'Aisha رضي الله عنها told him about it. So, he said to 'Aisha رضي الله عنها, "Take her and stipulate that the right to inherit from her will be yours, for the right of inheritance belongs only to the one who has set a slave free."[3] 'Aisha رضي الله عنها did so. Allāh's Messenger ﷺ then stood up among the people to address them. So, after praising and extolling Allāh, he said, "To proceed; what is the matter with some men who make conditions which are not in the Book of Allāh, the Might, the Majestic? Any condition which is not in Allāh's Book is invalid. Even if there are a hundred conditions, Allāh's Decision is more valid and Allāh's Condition is more binding. The right of inheritance belongs only to the one who has set a slave free." [Agreed upon and the wording is Al-Bukhārī's]. Muslim has:
“Buy her, set her free and make the stipulation that the right to inherit from her will be yours.”
Arabic text
وَعَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ: جَاءَتْنِي بَرِيرَةُ، فَقَالَتْ: كَاتَبْتُ أَهْلِي عَلَى تِسْعِ أَوَاقٍ، فِي كُلِّ عَامٍ أُوقِيَّةٌ، فَأَعِينِينِي. فَقُلْتُ: إِنْ أَحَبَّ أَهْلُكِ أَنْ أَعُدَّهَا لَهُمْ، وَيَكُونَ وَلَاؤُكِ لِي فَعَلْتُ، فَذَهَبَتْ بَرِيرَةُ إِلَى أَهْلِهَا. فَقَالَتْ لَهُمْ; فَأَبَوْا عَلَيْهَا، فَجَاءَتْ مِنْ عِنْدِهِمْ، وَرَسُولُ اللَّهِ - صلى الله عليه وسلم - جَالِسٌ. فَقَالَتْ: إِنِّي قَدْ عَرَضْتُ
ذَلِكَ عَلَيْهِمْ فَأَبَوْا إِلَّا أَنْ يَكُونَ الْوَلَاءُ لَهُمْ، فَسَمِعَ النَّبِيُّ - صلى الله عليه وسلم - فَأَخْبَرَتْ عَائِشَةُ النَّبِيَّ - صلى الله عليه وسلم -، فَقَالَ: «خُذِيهَا وَاشْتَرِطِي لَهُمُ الْوَلَاءَ، فَإِنَّمَا الْوَلَاءُ لِمَنْ أَعْتَقَ». فَفَعَلَتْ عَائِشَةُ، ثُمَّ قَامَ رَسُولُ اللَّهِ - صلى الله عليه وسلم - فِي النَّاسِ، فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ، ثُمَّ قَالَ: «أَمَّا بَعْدُ، مَا بَالُ رِجَالٍ يَشْتَرِطُونَ شُرُوطاً لَيْسَتْ فِي كِتَابِ اللَّهِ تَعَالَى؟ مَا كَانَ مِنْ شَرْطٍ لَيْسَ فِي كِتَابِ اللَّهِ فَهُوَ بَاطِلٌ، وَإِنْ كَانَ مِائَةَ شَرْطٍ، قَضَاءُ اللَّهِ أَحَقُّ، وَشَرْطُ اللَّهِ أَوْثَقُ، وَإِنَّمَا الْوَلَاءُ لِمَنْ أَعْتَقَ» مُتَّفَقٌ عَلَيْهِ، وَاللَّفْظُ لِلْبُخَارِيِّ ، وَعِنْدَ مُسْلِمٍ: فَقَالَ: «اشْتَرِيهَا وَأَعْتِقِيهَا وَاشْتَرِطِي لَهُمُ الْوَلَاءَ» .