"Give the shares of inheritance to those who are entitled to them. As for what remains, then it is for the closet male relative."

Another chain reports similar narration.
Jami` at-Tirmidhi Book 29, Hadith 9