It is narrated from Ibrahim (may Allah have mercy on him) that Sayyiduna Ali (may Allah be pleased with him) used to decide that: "A Jew, Christian, Magian, or slave does not prevent any heir from inheritance, but they are also not made heirs." And Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) used to prevent them, but would not make them heirs.
Hadith Referenceسنن سعید بن منصور / كتاب ولاية العصبة / 1325
Hadith Takhrij«أخرجه الدارمي فى «مسنده» برقم: 2940، وسعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 148، والبيهقي فى«سننه الكبير» برقم: 12389، وعبد الرزاق فى «مصنفه» برقم: 19102، وابن أبى شيبة فى «مصنفه» برقم: 31794، 31801، 31836، 31837، 32096»