It was narrated that ‘Ali (رضي الله عنه) said:
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.