同声相应,同气相求

Like attracts like, similar entities respond or...