[Machine] The Messenger of Allah ﷺ fostered brotherhood among his companions and they inherited from one another until this verse was revealed: "The relatives are more entitled to inheritance in the decree of Allah." [Al-Ahzab: 6] So they abandoned that and started inheriting based on blood relationships.
آخَى رَسُولُ اللهِ ﷺ بَيْنَ أَصْحَابِهِ وَوَرَّثَ بَعْضَهُمْ مِنْ بَعْضٍ حَتَّى نَزَلَتْ هَذِهِ الْآيَةُ {وَأُولُو الْأَرْحَامِ بَعْضُهُمْ أَوْلَى بِبَعْضٍ} [الأحزاب 6] فَتَرَكُوا ذَلِكَ وَتَوَارَثُوا بِالنَّسَبِ