Pride and shame are fraternal twins. Though they do not look alike, they were born one right after the other. Pride was the firstborn, then came its inevitable brother, shame (Gen 3:1-10).
Now, it is easy to see that having much pride is shameful. But what is often hidden from our sight is that having much shame can be prideful. The person with much shame often believes that harboring a sufficiently large quantity of shame is a necessary self-punishment before God (and others) and a means by which he might earn some degree of personal acceptance. In this way, his shame has become a self-determining, self-dependent, work of atonement, denying the sufficiency of Christ’s sacrifice on the cross for his sins. This is pride.