عَنِ ابْنِ عَبَّاسٍ رضي اللَّه عنهمَا، عَنِ النَّبِيِّ قَالَ: «أَلْحِقُوا الفَرَائِضَ بِأَهْلِهَا، فَمَا بَقِيَ فَهُوَ لِأَوْلَى رَجُلٍ ذَكَرٍ» 

Ibn ‘Abbās narrated that God’s Messenger (peace be upon him) said:

Give the stipulated shares to their owners; what is left over goes to the nearest male person.

Related by al-Bukhari, 6732; Muslim, 1615.

Related Quranic Verses

God has this to enjoin on you with regard to your children:

The male shall have a share equal to that of two females. If there are  more than two women, they shall have two-thirds of what [their parents] leave behind; and if there is only one, she shall have one-half of it. As for the parents [of the deceased], each of them shall have one sixth of what he leaves behind, in the event of his having a child; but if he leaves no children, and his parents be his heirs, then his mother shall have one-third; and if he has brothers and sisters, his mother shall have one-sixth after any bequest he may have made, or any outstanding debt [has been deducted from the total estate]. With regard to your parents and your children, you do not know which of them is of more benefit to you. This is, therefore, an ordinance from God. God is all-knowing, wise. (11)   You shall inherit one half of what your wives leave behind, provided that they have left no child; but if they have left a child, then you shall have one-quarter of what they leave behind, after [deducting] any bequest they may have made or any outstanding debt. And they [your widows] shall-inherit one quarter of what you leave behind, provided that you have left no child; but if you have left a child, then they shall have one-eighth of what you leave behind, after [deducting] any bequest you may have made or any outstanding debt. If a man or a woman has no heir in the direct line, but has a brother or a sister, then each of them shall inherit one-sixth; but if there be more, then they shall share in one-third, after [deducting] any bequest which may have been made or any outstanding debt, neither of which having been intended to harm [the heirs]. This is a commandment from God; and God is all-knowing, clement.

(4: 11-12)

Hadiths projects