Sunan Abu Dawud #2955
Tribute, Spoils, and Rulership (Kitab Al-Kharaj, Wal-Fai' Wal-Imarah) 20:28
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.