It is narrated from Hazrat Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Whoever leaves wealth for his heirs, it belongs to his family, and whoever leaves a debt, its payment is the responsibility of Allah and His Messenger (peace and blessings be upon him).
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 13251
Hadith Gradingحکم دارالسلام:صحيح، لغيره، وهذا إسناد ضعيف لجهالة أعين البصري