[Machine] Bareerah's husband was a free man. When she was freed, the Messenger of Allah ﷺ gave her the choice to either stay with him or leave. She chose herself and said that her family wanted to sell her and demand loyalty. She mentioned this to the Prophet ﷺ , and he said to buy her and free her, as loyalty belongs to the one who sets free.
كَانَ زَوْجُ بَرِيرَةَ حُرًّا فَلَمَّا أُعْتِقَتْ وَقَالَ مَرَّةً عَتَقَتْ خَيَّرَهَا رَسُولُ اللهِ ﷺ فَاخْتَارَتْ نَفْسَهَا قَالَتْ وَأَرَادَ أَهْلُهَا أَنْ يَبِيعُوهَا وَيَشْتَرِطُوا الْوَلَاءَ قَالَتْ فَذَكَرْتُ ذَلِكَلِلنَّبِيِّ ﷺ فَقَالَ اشْتَرِيهَا فَأَعْتِقِيهَا فَالْوَلَاءُ لِمَنْ أَعْتَقَ