(1) باب أَلْحِقُوا الْفَرَائِضَ بِأَهْلِهَا فَمَا بَقِيَ فَلأَوْلَى رَجُلٍ ذَكَرٍ
Ibn Abbas (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:
Give the shares to those who are entitled to them, and what remains over goes to the nearest male heir.
Reference: Sahih Muslim 1615 a
In-book reference: Book 23, Hadith 2
USC-MSA web (English) reference(deprecated numbering scheme): Book 11, Hadith 3929