The right of inheritance vests with one who shows favour (who emancipates) and Messenger of Allah (may peacebe upon him) gave her the choice (either to retain) her matrimonial alliance or break it). Her husband was a slave. She (Barira also) gave 'A'isha some meat as gift. Messenger of Allah ﷺ said: I wish you could prepare (cook) for us out of this meat. 'A'isha said, It has been given as charity to Barira, whereupon he said: That is charity for her and gift for us. (Using translation from Muslim 1504g)
رَسُولُ اللهِ ﷺ «الْوَلَاءُ لِمَنْ وَلِيَ النِّعْمَةَ» وَخَيَّرَهَا رَسُولُ اللهِ ﷺ وَكَانَ زَوْجُهَا عَبْدًا وَأَهْدَتْ لِعَائِشَةَ لَحْمًا فَقَالَ رَسُولُ اللهِ ﷺ «لَوْ وَضَعْتُمْ لَنَا مِنْ هَذَا اللَّحْمِ» فَقَالَتْ عَائِشَةُ تُصُدِّقَ بِهِ عَلَى بَرِيرَةَ فَقَالَ «هُوَ عَلَيْهَا صَدَقَةٌ وَهُوَ لَنَا هَدِيَّةٌ»