Sunan Ibn Majah, Volume 3, Book 13, Hadith 2352 (DarusSalam) ⓘ
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.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ، عَنْ عُثْمَانَ الْبَتِّيِّ، عَنْ عَبْدِ الْحَمِيدِ بْنِ سَلَمَةَ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، أَنَّ أَبَوَيْهِ، اخْتَصَمَا إِلَى النَّبِيِّ صلى الله عليه وسلم أَحَدُهُمَا كَافِرٌ وَالآخَرُ مُسْلِمٌ فَخَيَّرَهُ فَتَوَجَّهَ إِلَى الْكَافِرِ فَقَالَ " اللَّهُمَّ اهْدِهِ " . فَتَوَجَّهَ إِلَى الْمُسْلِمِ فَقَضَى لَهُ بِهِ .
also referenced under: Hadith 2352 (Reference) & Book 13, Hadith 45 (In-Book)