Allah says, "The believing men and believing women are allies of one another. They enjoin what is right and forbid what is wrong." (Quran 9:71)
The Prophet ﷺ said, "A person is upon the religion of his close friend, so let each of you look to whom he befriends."