Sunan Ibn Majah, Book 10, Hadith 2147 (In-Book) ⓘ
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.
حَدَّثَنَا أَحْمَدُ بْنُ سِنَانٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، عَنْ مَالِكِ بْنِ أَنَسٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَجُلاً، لاَعَنَ امْرَأَتَهُ وَانْتَفَى مِنْ وَلَدِهَا فَفَرَّقَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ بَيْنَهُمَا وَأَلْحَقَ الْوَلَدَ بِالْمَرْأَةِ .
also referenced under: Hadith 2069 (Reference) & Volume 3, Book 10, Hadith 2069 (DarusSalam)