Surah An-Nisaa

4:33

وَلِكُلٍّۢ جَعَلْنَا مَوَٰلِىَ مِمَّا تَرَكَ ٱلْوَٰلِدَانِ وَٱلْأَقْرَبُونَ ۚ وَٱلَّذِينَ عَقَدَتْ أَيْمَٰنُكُمْ فَـَٔاتُوهُمْ نَصِيبَهُمْ ۚ إِنَّ ٱللَّهَ كَانَ عَلَىٰ كُلِّ شَىْءٍۢ شَهِيدًا

And for all, We have made heirs to what is left by parents and relatives. And to those whom your oaths have bound [to you] - give them their share. Indeed Allah is ever, over all things, a Witness.

Tafsir 4:33

For every one of you I have made relations to inherit from what parents and relatives leave in their inheritance; and for those who you have made a promise of allegiance with as an ally and helper, give them their share of the inheritance. I am a witness to everything, and I witness your oaths and promises. The ally inheriting was a ruling at the beginning of Islam, but this ruling was later replaced.