類をもって集まる(るいをもってあつまる)

Japanese vocabulary

Meaning: birds of a feather flock together

See it used in real works