The full saying is, "Birds of a feather flock together." It means that people of similar interests, behaviors, backgrounds, etc. will hang out with each other. While it is not necessarily derrogatory, it usually means that you are condemning one person based on the reputations of the people he associates with.
- For Teachers