Kharijah bin Zaid narrates from his father (Zaid bin Thabit, may Allah be pleased with him): Previously, people of every community used to inherit from one another, except in the case when a person died a sudden death due to a house collapsing, burning, war, or any other reason. In such cases, those people would not inherit from one another; rather, among the living, their close relatives would inherit from them. It seemed as if there was no relationship between that person and the one who died a sudden death.
Hadith Referenceسنن الدارقطني / كتاب السير / 4210
Hadith Takhrij«أخرجه الدارمي فى ((مسنده)) برقم: 3087، والبيهقي فى((سننه الكبير)) برقم: 12380، 12381، والدارقطني فى ((سننه)) برقم: 4210»