From Rom 2:6-11 and 1 Pet 1:17 and 2 Cor 5:10 and Rev 20:12,13 each man will be judged according in to his works, whether those works are good or evil, obedient or disobedient, righteous or unrighteous. One whose works were good, righteous, obedient are the ones who sins have been cleansed and will be saved. Those whose works were evil, unrighteous, disobedient are those whose sins have not been cleansed and will be lost. So the type of work a person does is the standard by which God will judge. So it amazes me how some will say works have nothing to do with salvation when works have everything to do with salvation and where a person will be in eternity.
One commentator put it:
Revelation 20:12-13: “And I saw the dead, small and great, standing before God, and books were opened. And another book was opened, which is the Book of Life. And the dead were judged according to their works, by the things which were written in the books. The sea gave up the dead who were in it, and Death and Hades delivered up the dead who were in them. And they were judged, each one according to his works.”
God says our judgment will be based on what is written in the books. These will include the Bible: John 12:48 – “He who rejects Me, and does not receive My words, has that which judges him – the word that I have spoken will judge him in the last day.” But it will also include a record of what we have done. For the unrighteous, these books will contain all of the unrighteousness/sin they ever committed, to include the opportunities they had to obey God and how they refused. For the righteous, these books will contain all of the righteous things/works they did, since God will not hold them accountable for their sins because the blood of Christ has removed them.