The Messenger of Allah ﷺ said, "Give the fixed shares to those entitled to them, and whatever remains goes to the nearest male relative."
حدثنا مسلم بن إبراهيم حدثنا وهيب حدثنا ابن طاوس عن أبيه
قال رسول الله ﷺ ألحقوا الفرائض بأهلها فما بقي فهو لأولى رجل ذكر