Hadithcore
Mishkat al-Masabih, 2916, 2917

Al-Bara’ b. ‘Azib reported God's Messenger as saying, "A debtor is bound to his debt and will complain to his Lord of loneliness on the day of resurrection.” It is transmitted in <i>Sharh as-sunna</i>. A <i>mursal</i> tradition is transmitted to the effect that Mu'adh was in debt and his creditors went to the Prophet (ﷺ) who sold all his property to pay his debt, with the result that Mu'adh had nothing left. This is the wording in <i>al-Masabih</i>, but the only source in which I have found it is <i>al-Muntaqa</i>.

وَعَنِ الْبَرَاءِ بْنِ عَازِبٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «صَاحِبُ الدَّيْنِ مَأْسُورٌ بِدَيْنِهِ يَشْكُو إِلَى رَبِّهِ الْوَحْدَةَ يَوْمَ الْقِيَامَة» . رَوَاهُ فِي شرح السّنة وَرُوِيَ أَنَّ مُعَاذًا كَانَ يَدَّانُ فَأَتَى غُرَمَاؤُهُ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَبَاعَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَالَهُ كُلَّهُ فِي دَيْنِهِ حَتَّى قَامَ مُعَاذٌ بِغَيْرِ شَيْءٍ. مُرْسَلٌ هَذَا لَفْظُ الْمَصَابِيحِ. وَلَمْ أَجِدْهُ فِي الْأُصُول إِلَّا فِي الْمُنْتَقى

References1 variant
In-Book Reference
Book 11, Hadith 153