Abu Huraira reported: The Prophet, peace and blessings be upon him, said, “A man is upon the religion of his best friend, so let one of you look at whom he befriends.”
Source: Sunan al-Tirmidhī 2378
Grade: Sahih (authentic) according to Al-Nawawi
عَنْ أَبِي هُرَيْرَةَ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ الرَّجُلُ عَلَى دِينِ خَلِيلِهِ فَلْيَنْظُرْ أَحَدُكُمْ مَنْ يُخَالِلُ
2378 سنن الترمذي كتاب الزهد
177 المحدث النووي خلاصة حكم المحدث إسناده صحيح في تحقيق رياض الصالحين