Language:
كتاب فى الاستقراض
43  
Loans, Payment of Loans, Freezing of Property, Bankruptcy
(11)
Chapter: The funeral Salat (prayer) for a dead person in debt
(11)
باب الصَّلاَةِ عَلَى مَنْ تَرَكَ دَيْنًا
Sahih al-Bukhari 2398

Narrated Abu Huraira:

The Prophet (ﷺ) said, "If someone leaves some property, it will be for the inheritors, and if he leaves some weak offspring, it will be for us to support them."

حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنْ عَدِيِّ بْنِ ثَابِتٍ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ مَنْ تَرَكَ مَالاً فَلِوَرَثَتِهِ، وَمَنْ تَرَكَ كَلاًّ فَإِلَيْنَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 2398
In-book reference : Book 43, Hadith 14
USC-MSA web (English) reference : Vol. 3, Book 41, Hadith 583
  (deprecated numbering scheme)