suggests that
people with similar interests, values or characteristics tend to seek one another's company.
also
like attracts like
When people are attracted to those who are similar or have the same ideas and principles., the saying “Like draws to like” is appropriate.