惺惺相惜

  1. (lit.) people of talent appreciate one another (idiom)
  2. (fig.) to feel an affinity with (sb); to feel a bond with