The Messenger of Allah (ﷺ) assigned the estate of a child of a woman about whom she had invoked a curse to her mother, and to her heirs after her.
Sunan Abi Dawud Book 19, Hadith 23