Ali bin Abu Talib reported,

The Messenger of Allah ﷺ ruled that the debt is to be paid before the bequest, even though you recite it as "after any bequest he may have made or any debt" [Nisa 4:11]. Indeed, full brothers from the same mother inherit from one another to the exclusion of half-brothers from different mothers.

Ibn Majah 2715

Daif

حدثنا علي بن محمد حدثنا وكيع حدثنا سفيان عن أبي إسحق عن الحارث

عن علي قال

قضى رسول الله ﷺ بالدين قبل الوصية وأنتم تقرءونها {من بعد وصية يوصي بها أو دين} وإن أعيان بني الأم ليتوارثون دون بني العلات

ابن ماجه 2715ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Bequests
Chapter
Debt before the bequest
Numbering
Darussalam 2715
Ibn Majah 2715