The Prophet ﷺ ruled that debts must be paid before carrying out bequests, and you recite the words, “after payment of legacies he (or she) may have bequeathed or debts” [an-Nisaʿ 4:12]. Brothers from the same mother and father inherit from one another, but brothers from different mothers do not. (Using translation from Aḥmad 1091)
قَضَى رَسُولُ اللهِ ﷺ بِالدَّيْنِ قَبْلَ الْوَصِيَّةِ وَأَنْتُمْ تَقْرَءُونَ {مِنْ بَعْدِ وَصِيَّةٍ يُوصَى بِهَا أَوْ دَيْنٍ} [النساء 12] وَإِنَّ أَعْيَانَ بَنِي الْأُمِّ يَتَوَارَثُونَ دُونَ بَنِي الْعَلَّاتِ الْإِخْوَةُ وَالْأَخَوَاتُ لِلْأَبِ وَالْأُمِّ دُونَ الْإِخْوَةِ وَالْأَخَوَاتِ لِلْأَبِ