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. (Using translation from Ibn Mājah 2352)
أَنَّ أَبَوَيْهِ اخْتَصَمَا فِيهِ إِلَى النَّبِيِّ ﷺ وَأَحَدُهُمَا مُسْلِمٌ وَالْآخَرُ كَافِرٌ فَخَيَّرَهُ فَتَوَجَّهَ إِلَى الْكَافِرِ مِنْهُمَا فَقَالَ اللهُمَّ اهْدِهِ فَتَوَجَّهَ إِلَى الْمُسْلِمِ فَقَضَى لَهُ بِهِ