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] وَإِنَّ اللهَ ﷻ قَضَى بِالدَّيْنِ قَبْلَ الْوَصِيَّةِ وَإِنَّ أَعْيَانَ بَنِي الْأُمِّ يَتَوَارَثُونَ دُونَ بَنِي الْعَلَّاتِ