Sunan Ibn Majah, Book 23, Hadith 21 (Ibn Majah 2741)

It was narrated that ‘Ali bin Abu Talib said:

“The Messenger of Allah (ﷺ) ruled that the sons from the same mother inherit from one another, but not sons from different mothers. A man inherits from his full brother from the same father and mother, but not his brothers from his father.”