his parents referred their dispute to the Prophet (ﷺ), and one of them was a disbeliever…

Sunan Ibn Majah Book 13 Hadith 45

Sunan Ibn Majah #2352

The Chapters on Rulings 13:45

It was narrated from 'Abdul-Hamid bin Salamah, from his father, from his grandfather, that :

his parents referred their dispute to the Prophet (ﷺ), and one of them was a disbeliever. He (the Prophet (ﷺ)) said: “O Allah, guide him,” and he turned towards the Muslim, and he ruled that he should go with that parent.

Chapter: Giving A Child The Choice Between His The Parents

Grade: Hasan (Darussalam)