Jarir (RAA) narrated that The Messenger of Allah (ﷺ) said:
"Any Muslim who stays among the polytheists, does not belong to me." Related by the three Imams with a sound chain of narrators. Imam Al-Bukhari considered it as Mursal (i.e. the companion is absent from the chain of narrators. (JA)
English reference (JA): Book 11, Hadith 1303 (JA)
Arabic reference (JA): Book 11, Hadith 1276 (JA)