Chinese words · Chengyu

知己知彼

zhījǐ-zhībǐ

know yourself and know your enemy

Meanings from our own dictionary. Chengyu from the Xinhua idiom list, the most common first.