I recently learnt (from sources like ustad Zaid Patel's course in Hindi/Urdu and Sheikh Bilal in English) that if a person's income is haram or includes haram, it becomes halal for the other person who exchanges it for an economic activity like selling him something and taking his money in return. In short, haram money becomes halal with the change of hands.
And I also learnt that this doesn't work while gifting someone, haram money won't become halal upon gift transfer.
My question is about the transfer when money/properties are transferred during wirasat/heirship from a person to his various family members. Does this kind of transfer convert haram into halal?