Language:
كتاب الفرائض
85  
Laws of Inheritance (Al-Faraa'id)
(5)
Chapter: Inheritance of the offspring from dead fathers and mothers
(5)
باب مِيرَاثِ الْوَلَدِ مِنْ أَبِيهِ وَأُمِّهِ
Sahih al-Bukhari 6732

Narrated Ibn `Abbas:

The Prophet (ﷺ) said, "Give the Fara'id (the shares of the inheritance that are prescribed in the Qur'an) to those who are entitled to receive it. Then whatever remains, should be given to the closest male relative of the deceased ."

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا وُهَيْبٌ، حَدَّثَنَا ابْنُ طَاوُسٍ، عَنْ أَبِيهِ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ أَلْحِقُوا الْفَرَائِضَ بِأَهْلِهَا، فَمَا بَقِيَ فَهْوَ لأَوْلَى رَجُلٍ ذَكَرٍ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6732
In-book reference : Book 85, Hadith 9
USC-MSA web (English) reference : Vol. 8, Book 80, Hadith 724
  (deprecated numbering scheme)