Hadithcore
Hadith #2109810

Narrated Abu Ayub al-Ansari (RA):

I heard Allah's Messenger (ﷺ) saying, "Whoever separates a mother from her child, May Allah separate him from his beloved ones on the Day of Resurrection." [Reported by Ahmad. at-Tirmidhi and al-Hakim graded it Sahih (authentic). However, it's chain of narrators has some weakness. But, it has a supporting narration].

وَعَنْ أَبِي أَيُّوبَ اَلْأَنْصَارِيِّ ‏- رضى الله عنه ‏- [ قَالَ ]: سَمِعْتُ رَسُولَ اَللَّهِ ‏- صلى الله عليه وسلم ‏-يَقُولُ: { مَنْ فَرَّقَ بَيْنَ وَالِدَةٍ وَوَلَدِهَا, فَرَّقَ اَللَّهُ بَيْنَهُ وَبَيْنَ أَحِبَّتِهِ يَوْمَ اَلْقِيَامَةِ } رَوَاهُ أَحْمَدُ, وَصَحَّحَهُ اَلتِّرْمِذِيُّ, وَالْحَاكِمُ, وَلَكِنْ فِي إِسْنَادِهِ مَقَالٌ.‏ [1]‏ .‏ وَلَهُ شَاهِدٌ [2]‏ .‏

References2 variants
Sunnah.com reference
Book 7, Hadith 36
Arabic/English book reference
Book 7, Hadith 813