牛は牛連れ馬は馬連れ(うしはうしづれうまはうまづれ)

Japanese vocabulary

Meaning: birds of a feather flock together; don't mix your horses with your cows

See it used in real works