It is narrated from Sayyiduna Ali (may Allah be pleased with him) that in the Noble Qur'an, the mention of bequest is read before debt, and the Messenger of Allah (peace and blessings be upon him) decreed the payment of debt before bequest.
Hadith Referenceالسنن المأثورة / باب ما جاء في فدية الأذى / 513
Hadith Takhrijسنن ترمذی، الفرائض، باب ماجاء في ميراث الاخوة من الاب والأم، رقم: 2094، وقال الالبانی: حسن، سنن ابن ماجه، الوصايا، باب الدين قبل الوصية، رقم: 2715