A:
Settling the debt of a legator takes precedence over distributing the legacy among the heirs. Therefore, it is obligatory to settle the deceased's debt at first. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.