知彼知己，百戰不殆

Etymology
See the entry at.

Idiom

 * 1) Know the enemy and know yourself, and you can fight a hundred battles with no danger of defeat.