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 the people of the fixed shares according to the Book of Allah; then whatever remains after the fixed shares is the right of the nearest male."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10856