It was narrated from Ibn 'Umar that:
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. (ID)
English reference (ID): Vol. 3, Book 10, Hadith 2069 (ID)
Arabic reference (ID): Book 10, Hadith 2147 (ID)