Miguel De Cervantes said this quote

The knowledge of yourself will preserve you from vanity.