It wasnarrated from Wathilah bin Asqa' that the Prophet (ﷺ) said:
"Awoman may get three types of inheritance: From her freed slavewoman,a foundling whom she raised, and her child concerning whom shesworein Li'an that he was legitimate." (JA)
English reference (JA): Vol. 4, Book 23, Hadith 2742 (JA)
Arabic reference (JA): Book 23, Hadith 2847 (JA)