Hadithcore
Sahih al-Bukhari, 2292
sahih

Narrated Sa`id bin Jubair:

Ibn `Abbas said, "In the verse: To every one We have appointed ' (Muwaliya Muwaliya means one's) heirs (4:33).' (And regarding the verse) 'And those with whom your right hands have made a pledge.' Ibn `Abbas said, "When the emigrants came to the Prophet (ﷺ) in Medina, the emigrant would inherit the Ansari while the latter's relatives would not inherit him because of the bond of brotherhood which the Prophet (ﷺ) established between them (i.e. the emigrants and the Ansar). When the verse: 'And to everyone We have appointed heirs' (4:33) was revealed, it canceled (the bond (the pledge) of brotherhood regarding inheritance)." Then he said, "The verse: To those also to whom your right hands have pledged, remained valid regarding cooperation and mutual advice, while the matter of inheritance was excluded and it became permissible to assign something in one's testament to the person who had the right of inheriting before.

حَدَّثَنَا الصَّلْتُ بْنُ مُحَمَّدٍ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ إِدْرِيسَ، عَنْ طَلْحَةَ بْنِ مُصَرِّفٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما – ‏{‏وَلِكُلٍّ جَعَلْنَا مَوَالِيَ‏}‏ قَالَ وَرَثَةً ‏{‏وَالَّذِينَ عَقَدَتْ أَيْمَانُكُمْ‏}‏ قَالَ كَانَ الْمُهَاجِرُونَ لَمَّا قَدِمُوا الْمَدِينَةَ يَرِثُ الْمُهَاجِرُ الأَنْصَارِيَّ دُونَ ذَوِي رَحِمِهِ لِلأُخُوَّةِ الَّتِي آخَى النَّبِيُّ صلى الله عليه وسلم بَيْنَهُمْ، فَلَمَّا نَزَلَتْ ‏{‏وَلِكُلٍّ جَعَلْنَا مَوَالِيَ‏}‏ نَسَخَتْ، ثُمَّ قَالَ ‏{‏وَالَّذِينَ عَقَدَتْ أَيْمَانُكُمْ ‏}‏ إِلاَّ النَّصْرَ وَالرِّفَادَةَ وَالنَّصِيحَةَ، وَقَدْ ذَهَبَ الْمِيرَاثُ وَيُوصِي لَهُ‏.‏

References2 variants
In-Book Reference
Book 39, Hadith 3
USC-MSA web (English) reference
Vol. 3, Book 37, Hadith 489 (deprecated numbering scheme)
Sharh · explanationclick to expand
When the Prophet ﷺ migrated to Al-Madeenah and the emigrants followed him, he ﷺ established the bond of brotherhood between the emigrants and Ansaar. A man of the Ansaar would make his emigrant brother a partner in his wealth, house, etc., and when he died, his emigrant brother would inherit him instead of his own (biological) relatives, because of the bond of brotherhood established by the Prophet ﷺ between them. This is the meaning of the ayah that reads (what means): {And to those whom your oaths have bound [to you] - give them their share.} [Quran 4:33]. The Arabic word used in the ayah is ‘Aaqadat meaning those who give made a pledge to those whom you made a pledge, and this was one of the seven approved modes of recitation confirmed by Tawaatur (i.e., collectively contiguous narrations transmitted by a large group of trustworthy narrators on the authority of a large group of trustworthy narrators, generation after generation and so forth, and it is absolutely impossible for them to agree on a lie). According to another mode of recitation, the Arabic word used in the ayah is ‘Aqadat meaning those who made a covenant (i.e., alliances) with you. A man would make a covenant or alliance with another, saying: “My blood is your blood; your revenge is my revenge; your war is my war; I am bound to your peace treaties, and you will inherit me and I will inherit you.” Afterward, the following ayah was revealed; Allah, Exalted is He, Says (what means): {And for all, We have made heirs to what is left by parents and relatives,} [Quran 4:33] meaning that Allah, Exalted is He, made for each of you relatives (heirs), including brothers and cousins on both the mother’s and father’s side who are entitled to inherit. This ayah abrogated the ayah that reads (which means): {And to those whom your oaths have bound [to you] - give them their share.} [Quran 4:33]. Thereafter, only a dead person’s relatives were entitled to inherit him, and those with whom the dead person had made covenants and alliances were no longer entitled to inherit.But such covenants and alliances remained valid regarding support in what is right and permissible, meaning cooperation regarding worldly affairs, and sincerity in compliance withIslam, and this includes cooperating in adhering to the truth, and supporting the wronged people by preventing the oppressor from his acts of injustice. These were some of the due rights of one’s fellow Muslims.It also remained permissible for a Muslim to make a bequest to those who would have inherited him according to the bond of brotherhood, if he wished. As for the distribution of the inheritance after one’s death, only the heirs as per the laws of Islam may inherit him as delineated in the Quran. .
Related hadiths3
Compare isnād across 3 related chains →