It was narrated from Jabir that the Messenger of Allah (ﷺ) said:
"Whoever leaves behind money, it is for his heirs, and whoever leaves behind a debt for children, I am nearer to the believers."
English reference: Vol. 3, Book 15, Hadith 2416
Arabic reference: Book 15, Hadith 2509