Sunan Ibn Majah, Book 23, Hadith 24 (Ibn Majah 2744)

It was narrated from Wathilah bin Asqa’ that the Prophet (ﷺ) said:

“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.”