Sayyidina Wathilah ibn Asqa (RA) reported that Allah’s Messenger (SAW) said, A woman can own legacy from three sources: the legacy of the slave she sets free, the child she fondles (and rears up), and her own child about whom she cursed herself (in li’an with her husband that he was a legitimate child.’
[Abu Dawud 2906]