a man invoked curses on his wife, and refused to accept her child. The Messenger of Allah (ﷺ) separated them, and left the child with the woman.
Sunan Ibn Majah Book 10, Hadith 54