Aishah, the wife of the Prophet ﷺ, reported that three legal rulings were established through the case of Barirah. She was given the choice regarding her husband when she was set free. Some meat was given to her as a gift, and the Messenger of Allah ﷺ entered while a pot was on the fire. He asked for food, and was brought bread and some condiment from the household's provisions.He said, "Did I not see a pot on the fire with meat in it?"They replied, "Yes, Messenger of Allah, that is meat which was given in charity to Barirah, and we did not want to feed you from it."He said, "It is charity for her, and from her it is a gift to us."And the Prophet ﷺ said concerning her case, "The right of wala belongs only to the one who set the slave free."
زوج النبي ﷺ أنها قالت: كان في بريرة ثلاث سنن: خيرت على زوجها حين عتقت، وأهدي لها لحم، فدخل علي رسول الله ﷺ والبرمة على النار، فدعا بطعام، فأتي بخبز وأدم من أدم البيت، فقال: ألم أر برمة على النار فيها لحم فقالوا: بلى يا رسول الله، ذلك لحم تصدق به على بريرة، فكرهنا أن نطعمك منه، فقال: هو عليها صدقة، وهو منها لنا هدية وقال النبي ﷺ فيها: إنما الولاء لمن أعتق.
Bukhari narrated it in the Book of Foods (5430), and Muslim in the Book of Manumission (14:1504), both through Rabia bin Abu Abdul-Rahman, from Qasim bin Muhammad, from Ayesha, and he mentioned it. The wording is Muslim's.