إِذَا تَرَكَ الرَّجُلُ مَوْلًى مُنْعِماً أَوْ مُنْعَماً عَلَيْهِ وَ لَمْ يَتْرُكْ وَارِثاً غَيْرَهُ فَالْمَالُ لَهُ فَإِنْ تَرَكَ مَوَالِيَ مُنْعِمِينَ أَوْ مُنْعَماً عَلَيْهِمْ رِجَالًا وَ نِسَاءً فَالْمَالُ بَيْنَهُمْ لِلذَّكَرِ مِثْلُ حَظِّ الْأُنْثَيَيْنِ فَإِنْ تَرَكَ بَنِي وَ بَنَاتِ مَوْلَاهُ الْمُنْعِمِ أَوِ الْمُنْعَمِ عَلَيْهِ وَ لَمْ يَتْرُكْ وَارِثاً غَيْرَهُمْ فَالْمَالُ لِبَنِي وَ بَنَاتِ مَوْلَاهُ لِلذَّكَرِ مِثْلُ حَظِّ الْأُنْثَيَيْنِ لِأَنَّ الْوَلَاءَ لُحْمَةٌ كَلُحْمَةِ النَّسَبِ وَ مَتَى خَلَّفَ وَارِثاً مِنْ ذَوِي الْأَرْحَامِ مِمَّنْ قَرُبَ نَسَبُهُ أَوْ بَعُدَ وَ تَرَكَ مَوْلَاهُ الْمُنْعِمَ أَوِ الْمُنْعَمَ عَلَيْهِ فَالْمَالُ لِلْوَارِثِ مِنْ ذَوِي الْأَرْحَامِ وَ لَيْسَ لِلْمَوْلَى شَيْءٌ لِأَنَّ اللَّهَ عَزَّ وَ جَلَّ يَقُولُ وَ أُولُوا الْأَرْحامِ بَعْضُهُمْ أَوْلى بِبَعْضٍ فِي كِتابِ اللَّهِ مِنَ الْمُؤْمِنِينَ وَ الْمُهاجِرِينَ إِلَّا أَنْ تَفْعَلُوا إِلى أَوْلِيائِكُمْ مَعْرُوفاً يَعْنِي الْوَصِيَّةَ لَهُمْ بِشَيْءٍ أَوْ هِبَةَ الْوَرَثَةِ لَهُمْ مِنَ الْمِيرَاثِ شَيْئاً.
If a man leaves behind a benefactor or a person upon whom he has bestowed favors and has no other heir, the wealth belongs to that individual. However, if he leaves behind multiple benefactors or those upon whom favors were bestowed, both men and women, the wealth is to be divided among them, with the male receiving the share equal to that of two females. If he leaves behind the sons and daughters of his benefactor or the one upon whom he bestowed favors, and there is no other heir, the wealth belongs to the sons and daughters of his benefactor, with the male receiving the share equal to that of two females. This is because the bond of loyalty (wala') is like the bond of kinship. However, if he leaves behind an heir from his blood relatives, whether closely or distantly related, along with his benefactor or the one upon whom he bestowed favors, the wealth belongs to the blood relative, and the benefactor receives nothing. This is because Allah (swt), the Mighty and Majestic, says: "Those who are related by blood are more entitled to inherit from each other in the Book of Allah (swt) than the believers and the emigrants, except that you do kindness to your allies," (Surah Al-Ahzab 33:6), This meaning through a will for them or by the heirs gifting them something from the inheritance.