It is narrated from al-Sha'bi that Sayyiduna Ali and Ibn Mas'ud (may Allah be pleased with them both) said regarding Magians: He will be made an heir from two aspects.
The narrations from the Companions on this subject are not strong.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12512