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." (TR)
English reference (TR): Vol. 4, Book 23, Hadith 2742 (TR)
Arabic reference (TR): Book 23, Hadith 2847 (TR)