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: "Divide the wealth among those entitled to fixed shares according to the Book of Allah; whatever remains belongs to the nearest male."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12490