Sunan Abi Dawud, Book 15, Hadith 311 (Abu Dawud 2788)

Narrated Samurah ibn Jundub:

To proceed, the Messenger of Allah (ﷺ) said: Anyone who associates with a polytheist and lives with him is like him.