Sunan Abi Dawud, Book 43, Hadith 61 (Abu Dawud 4835)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: A man follows the religion of his friend; so each one should consider whom he makes his friend.