Abdullah bin Abbas reported,

Regarding "And to everyone We have appointed heirs" [Nisa 4:33], he said it means inheritors.As for "and those with whom you have made a pledge" [Nisa 4:33], when the Muhajirun first arrived in Madinah, a Muhajir would inherit from an Ansari to the exclusion of the Ansari's own blood relatives, because of the bond of brotherhood the Prophet ﷺ had established between them. Then the verse "And to everyone We have appointed heirs" was revealed, leaving them with support, assistance, and sincere counsel, while the right of inheritance was abolished, though one could still leave a bequest for the other.

Azami 12145

Sahih

عن ابن عباس

{ولكل جعلنا موالى} قال: ورثة. {والذين عقدت أيمنكم} كان المهاجرون لما قدموا المدينة يرث المهاجري الأنصاري دون ذوي رحمه، للأخوة التي آخى النبي ﷺ بينهم، فلما نزلت: {ولكل جعلنا موالي} من النصر والرفادة والنصيحة، وقد ذهب الميراث، ويوصي له.

الأعظمي 12145صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And for all We have made heirs to what is left by parents and relatives. And to those whom your oaths have bound, give them their share. Indeed, Allah is ever over all things a witness."
Numbering
Jami al-Kamil 12145 (2nd edition)