It is narrated from Hazrat Sha'bi that Hazrat Abdullah bin Mas'ud (may Allah be pleased with him) used to consider slaves and the People of the Book as those who are prevented from inheritance, but he did not make them heirs.
Hadith Referenceمصنف ابن ابي شيبه / كتاب الفرائض / 33235
Hadith Takhrij(مصنف ابن ابي شيبه: ترقيم سعد الشثري 33235، ترقيم محمد عوامة 31802)