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." (PT)
English reference (PT): Vol. 3, Book 15, Hadith 2416 (PT)
Arabic reference (PT): Book 15, Hadith 2509 (PT)