The Prophet (peace and blessings be upon him) said:
"Give the fixed shares to those entitled to them, then whatever remains is the right of the nearest male relative (asabah)."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 1246
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم ق ت] عن ابن عباس. الإرواء ١٦٩٠، مختصر مسلم ٩٩٥.