Al-Zuhri (may Allah have mercy on him) was asked about Magians who become Muslim while having two kinships (with the deceased), and al-Zuhri (may Allah have mercy on him) said: He will be made an heir by the nearer of the two.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12508