Sahih al-Bukhari — Laws of Inheritance (Al-Faraa'id) — Hadith No: 6732
Translation
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