дурак дурака видит издалека

Etymology
lit. 'a fool sees a fool from afar'.

Proverb

 * 1) birds of a feather flock together