Who will render to every man according to his works.
For I have been saved by grace through faith, not of works
For not by works of righteousness which I have don but by his mercy he has saved me (titus 3)
Those who are saved who are born again do good deeds
Those who are lost can not do works of righteousness.
again, Keep trying to earn your salvation. Look at the prescriptive passages not the descriptive passage like you are doing