Barirah came to her asking for help with her writ of emancipation. She said, "If you wish, I will pay your masters the amount, and the right of inheritance will belong to me."When the Messenger of Allah ﷺ came, she mentioned this to him.The Prophet ﷺ said, "Buy her and set her free, for the right of inheritance belongs only to the one who frees the slave."Then the Messenger of Allah ﷺ stood on the pulpit and said, "What is the matter with people who stipulate conditions that are not in the Book of Allah? Whoever stipulates a condition that is not in the Book of Allah, it is invalid, even if he stipulates a hundred conditions."
حدثنا علي بن عبد الله حدثنا سفيان عن يحيى عن عمرة
أتتها بريرة تسألها في كتابتها فقالت إن شئت أعطيت أهلك ويكون الولاء لي فلما جاء رسول الله ﷺ ذكرته ذلك قال النبي ﷺ ابتاعيها فأعتقيها فإنما الولاء لمن أعتق ثم قام رسول الله ﷺ على المنبر فقال ما بال أقوام يشترطون شروطا ليست في كتاب الله من اشترط شرطا ليس في كتاب الله فليس له وإن اشترط مائة شرط