The Bible says in Ephesians 2:8-9, For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: [9] Not of works, lest any man should boast.
This has been interpreted to mean various things: There is nothing you can do for your salvation other than believe in Jesus the Messiah, his crucifixion, and resurrection. Jesus did it all, there is nothing we have to do. There is nothing you can do to make God love you any more or any less. We are saved by grace alone or we have no righteousness of our own.
The fact is we will be judged on how we lived our lives. Romans 2:6-10, Revelation 20:12-13
We often hear the phrase salvation does not come by works alone. Too many forget to add the alone qualifier. Salvation is a result of the combination of belief in Christ and following his law. Ecclesiastes 12:13. We can also look at it from an opposing view – not salvation by works, but damnation by works.
If we continue in sin, Hebrews 10:26-27 KJV tells us, For if we sin wilfully after that we have received the knowledge of the truth, there remaineth no more sacrifice for sins, [27] But a certain fearful looking for of judgment and fiery indignation, which shall devour the adversaries.