Be careful who you take for friends
Abu Hurayrah (radi Allahu anhu) reported: I heard the Prophet (sal Allahu alaihi wa sallam) saying, “Man follows his friend’s religion, you should be careful who you take for friends.”
[At-Tirmidhi and Abu Dawud]
This Hadith also induces one to avoid the company of impious people and seek the association of the pious persons.
And Allah Knows Best!