He, like the rest of us, have the awful choice of whether to take the glory ourselves from here to eternity (in which case God is going to say “you fell short, to the proud devil you go”) or to cede the glory to God.
I always thought self-righteousness was a form of pride, and just as sinful in the eyes of the Lord, or nearly anyway.