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