Sunan Ibn Majah – Hadith No : 2819

It was narrated that ‘Ali said: “The Messenger of Allah (ﷺ) ruled that the debts should be paid off before the execution of the will. You recite: ‘(The distribution in all cases is) after the payment of legacies he may have bequeathed or debts.’ The sons of one mother (from the same father) inherit from one another, but not the sons from different mothers (but the same father).”

Hadith In Arabic Text :

حدثنا علي بن محمد، حدثنا وكيع، حدثنا سفيان، عن أبي إسحاق، عن الحارث، عن علي، قال قضى رسول الله صلى الله عليه وسلم بالدين قبل الوصية وأنتم تقرءونها ‏{من بعد وصية يوصي بها أو دين }‏ وإن أعيان بني الأم ليتوارثون دون بني العلات ‏.‏

Chapter : The Chapters on Wills – كتاب الوصايا