[Machine] The Messenger of Allah ﷺ said: "Debt must be settled before making a will, and the heir has no right to make a will." This narration was reported by Yahya ibn Abi Unaysah from Abu Ishaq from Asim, and Yahya is considered weak in reliability.
قَالَ رَسُولُ اللهِ ﷺ الدَّيْنُ قَبْلَ الْوَصِيَّةِ وَلَيْسَ لِوَارِثٍ وَصِيَّةٌ كَذَا أَتَى بِهِ يَحْيَى بْنُ أَبِي أُنَيْسَةَ عَنْ أَبِي إِسْحَاقَ عَنْ عَاصِمٍ وَيَحْيَى ضَعِيفٌ