Sunan Abi Dawud, Book 20, Hadith 28 (Abu Dawud 2956)

Narrated Abu Hurairah:

The Messenger of Allah (ﷺ) as saying: If anyone leaves property, it goes to his heirs. And if anyone leaves dependents (without resources), they come to us.