Al-Kāfi - Volume 7 > The Case of One Who Leaves very Little Legacy with a Larger Amount of Debt and Dependents
Hadith #2

2- حُمَيْدُ بْنُ زِيَادٍ عَنِ ابْنِ سَمَاعَةَ عَنِ الْحُسَيْنِ بْنِ هَاشِمٍ وَمُحَمَّدِ بْنِ زِيَادٍ جَمِيعاً عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْحَجَّاجِ عَنْ أَبِي الْحَسَنِ (عَلَيْهِ السَّلام) مِثْلَهُ إِلا أَنَّهُ قَالَ إِنْ كَانَ يُسْتَيْقَنُ أَنَّ الَّذِي تَرَكَ يُحِيطُ بِجَمِيعِ دَيْنِهِ فَلا يُنْفَقُ عَلَيْهِمْ وَإِنْ لَمْ يَكُنْ يُسْتَيْقَنُ فَلْيُنْفَقْ عَلَيْهِمْ مِنْ وَسَطِ الْمَالِ.

2. Humayd ibn Ziyad has narrated from Sama‘ah from al-Husayn ibn Hashim and Muhammad ibn Ziyad all from ‘Abd al-Rahman ibn al-Hajjaj who has narrated a similar Hadith except that he has said: ‘If it is certain that his legacy covers all of his debts then it is not spent on them but if it is not certain then from the center of the legacy their expenses are paid..’”