Sun Tzu said this quote

Knowing the enemy enables you to take the offensive, knowing yourself enables you to stand on the defensive.