Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:3131Ḥajjāj > Ḥammād > Sufyān al-Thawrī > a man > al-Shaʿbī > ʿAlī And Ibn Masʿūd

[Machine] Ali and Ibn Mas'ood said about the Magians, "When they convert to Islam, they will inherit from both sides of their family."  

الدارمي:٣١٣١حَدَّثَنَا حَجَّاجٌ حَدَّثَنَا حَمَّادٌ عَنْ سُفْيَانَ الثَّوْرِيِّ عَنْ رَجُلٍ عَنْ الشَّعْبِيِّ

أَنَّ عَلِيًّا وَابْنَ مَسْعُودٍ قَالَا فِي الْمَجُوسِ «إِذَا أَسْلَمُوا يَرِثُونَ مِنَ الْقَرَابَتَيْنِ جَمِيعًا»