Hadith on Family: The Prophet maintains relations with unbelieving family

‘Amr ibn al-‘As reported: The Prophet, peace and blessings be upon him, said, “Verily, the relatives of my father are not my allies. Verily, only Allah and the righteous believers are my allies. Yet, they have the bonds of kinship and I will uphold their family ties.”

Source: Ṣaḥīḥ al-Bukhārī 5644, Ṣaḥīḥ Muslim Muslim 215

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

عَنْ عَمْرَو بْنَ الْعَاصِ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ إِنَّ آلَ أَبِي لَيْسُوا بِأَوْلِيَائِي إِنَّمَا وَلِيِّيَ اللَّهُ وَصَالِحُ الْمُؤْمِنِينَ وَلَكِنْ لَهُمْ رَحِمٌ أَبُلُّهَا بِبَلَاهَا يَعْنِي أَصِلُهَا بِصِلَتِهَا

5644 صحيح البخاري كتاب الأدب باب تبل الرحم ببلالها

215 صحيح مسلم كتاب الإيمان باب موالاة المؤمنين ومقاطعة غيرهم والبراءة منهم