The Messenger of Allah ﷺ said, "Debt will be exacted from its owner on the Day of Resurrection when he dies, except for one who takes on debt for three reasons.A man whose strength has weakened in the path of Allah, so he borrows in order to strengthen himself against the enemy of Allah and his own enemy.A man at whose side a Muslim dies, and he finds no means to shroud and bury him except through debt.And a man who fears for himself the temptations of being unmarried, so he marries out of concern for his religion.Allah will settle the debts of these on the Day of Resurrection."
حدثنا أبو كريب حدثنا رشدين بن سعد وعبد الرحمن المحاربي وأبو أسامة وجعفر بن عون عن ابن أنعم قال أبو كريب وحدثنا وكيع عن سفيان عن ابن أنعم عن عمران بن عبد المعافري
قال رسول الله ﷺ إن الدين يقضى من صاحبه يوم القيامة إذا مات إلا من يدين في ثلاث خلال الرجل تضعف قوته في سبيل الله فيستدين يتقوى به لعدو الله وعدوه ورجل يموت عنده مسلم لا يجد ما يكفنه ويواريه إلا بدين ورجل خاف الله على نفسه العزبة فينكح خشية على دينه فإن الله يقضي عن هؤلاء يوم القيامة
No references are available.
Reference, its chain is daif, and Busiri graded it daif. See no. 54 regarding the status of Ibn Anam and no. 970 regarding the status of Maafiri.