It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) established brotherhood between his Companions and made some of them heirs of others, until the verse "And those of blood relationship are more entitled to one another" [Surah al-Anfal: 75] was revealed. Then they abandoned that and began to inherit from one another through lineage.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12529