ENOfficial
Ibn ‘Abbas reported God’s Messenger as saying, “Give the shares to those who are entitled to them, and what remains over goes to the nearest male heir.” (Bukhari and Muslim.)
Source: sunnah.com
Other translations
Arabic
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «أَلْحِقُوا الْفَرَائِضَ بِأَهْلِهَا فَمَا بَقِيَ فَهُوَ لِأَوْلَى رَجُلٍ ذكر»
sunnah.com