وَلِكُلٍّۢ جَعَلْنَا مَوَٰلِىَ مِمَّا تَرَكَ ٱلْوَٰلِدَانِ وَٱلْأَقْرَبُونَ ۚ وَٱلَّذِينَ عَقَدَتْ أَيْمَٰنُكُمْ فَـَٔاتُوهُمْ نَصِيبَهُمْ ۚ إِنَّ ٱللَّهَ كَانَ عَلَىٰ كُلِّ شَىْءٍۢ شَهِيدًا
Surah An-Nisaa
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.