It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Give the fixed shares (fara'id) to those entitled to them, and whatever remains after the fixed shares goes to the nearest male relative."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12376