“A woman may get three types of inheritance: From her freed slave woman, a foundling whom she raised, and her child concerning whom she swore in Li’an that he was legitimate.”
Sunan Ibn Majah Book 23, Hadith 24