It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever leaves wealth, it is for his heirs, and whoever leaves a debt, it is our responsibility."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللقطة / 12129