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. (FR)
English reference (FR): Book 11, Hadith 1303 (FR)
Arabic reference (FR): Book 11, Hadith 1276 (FR)