He won't have to:
We who have put our faith in Christ alone for salvation have been clothed in the righteousness of Christ, HIS perfect life and good works are credited to our account.
Additionally, that is the judgment of the unsaved, those who rejected Christ's finished work on the cross and appealed to their own good works to save them. God is giving them what they want.
They want to get into heaven on their good works? God will judge them by that. And it's not going to turn out well.