Abdullah bin Amr bin As reported,

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."

Ibn Majah 2435

Daif

حدثنا أبو كريب حدثنا رشدين بن سعد وعبد الرحمن المحاربي وأبو أسامة وجعفر بن عون عن ابن أنعم قال أبو كريب وحدثنا وكيع عن سفيان عن ابن أنعم عن عمران بن عبد المعافري

عن عبد الله بن عمرو قال

قال رسول الله ﷺ إن الدين يقضى من صاحبه يوم القيامة إذا مات إلا من يدين في ثلاث خلال الرجل تضعف قوته في سبيل الله فيستدين يتقوى به لعدو الله وعدوه ورجل يموت عنده مسلم لا يجد ما يكفنه ويواريه إلا بدين ورجل خاف الله على نفسه العزبة فينكح خشية على دينه فإن الله يقضي عن هؤلاء يوم القيامة

ابن ماجه 2435ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Charity
Chapter
Three things for which whoever takes on debt, Allah will fulfill it for him
Numbering
Darussalam 2435
Ibn Majah 2435