Those who are not saved go before the White Throne of Judgement and suffer the wrath of God. Those who are saved go before the Bema Seat of Christ. All their sins are forgotten and they are awarded Crowns based on their good works. And to be clear, salvation does not come from good works, but good works come from salvation.
I was trying to just make a quick summary, not a theological exposition, so I didn’t want to get too specific, but thanks.
Yes, salvation does not come from works, but judgement (for the unsaved) is based on works.