Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:2352Abū Bakr b. Abū Shaybah > Ismāʿīl Ibn ʿUlayyah > ʿUthmān al-Battī > ʿAbd al-Ḥamīd b. Salamah from his father from his grandfather

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.  

ابن ماجة:٢٣٥٢حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ عَنْ عُثْمَانَ الْبَتِّيِّ عَنْ عَبْدِ الْحَمِيدِ بْنِ سَلَمَةَ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ أَبَوَيْهِ اخْتَصَمَا إِلَى النَّبِيِّ ﷺ أَحَدُهُمَا كَافِرٌ وَالآخَرُ مُسْلِمٌ فَخَيَّرَهُ فَتَوَجَّهَ إِلَى الْكَافِرِ فَقَالَ اللَّهُمَّ اهْدِهِ فَتَوَجَّهَ إِلَى الْمُسْلِمِ فَقَضَى لَهُ بِهِ  


See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:23755Ismāʿīl > ʿUthmān al-Battī > ʿAbd al-Ḥamīd b. Salamah from his father from his grandfather

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)  

أحمد:٢٣٧٥٥حَدَّثَنَا إِسْمَاعِيلُ عَنْ عُثْمَانَ الْبَتِّيِّ عَنْ عَبْدِ الْحَمِيدِ بْنِ سَلَمَةَ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ أَبَوَيْهِ اخْتَصَمَا فِيهِ إِلَى النَّبِيِّ ﷺ وَأَحَدُهُمَا مُسْلِمٌ وَالْآخَرُ كَافِرٌ فَخَيَّرَهُ فَتَوَجَّهَ إِلَى الْكَافِرِ مِنْهُمَا فَقَالَ اللهُمَّ اهْدِهِ فَتَوَجَّهَ إِلَى الْمُسْلِمِ فَقَضَى لَهُ بِهِ  

suyuti:653-16bʿAbd al-Ḥamīd b. Salamah from his father from his grandfather
Request/Fix translation

  

السيوطي:٦٥٣-١٦b

"عَنْ عَبْدِ الْحَمِيدِ بْنِ سَلَمَةَ، عَنْ أَبِيهِ، عَنْ جَدِّهِ أَنَّ أَبَوَيهِ اخْتَصَمَا فِيهِ إِلَى النَّبِيِّ ﷺ أَحَدُهُمَا مُسْلِمٌ، والآخَرُ كَافِرٌ، فَخيرَهُ، فَرَدَّهُ إِلَى الْكَافِرِ فَقَالَ: اللَّهُمَّ اهْدِهِ فَتَوَجَّهَ إِلَى المسلِمِ، فَقَضَى لَهُ بِهِ".  

[عب] عبد الرازق