You are saved by faith.
You cannot be saved by works.
Romans 4:1-5 NKJV What then shall we say that Abraham our father has found according to the flesh? For if Abraham was justified by works, he has something of which to boast, but not before God. For what does the Scripture say? Abraham believed God, and it was accounted to him for righteousness. Now to him who works, the wages are not counted as grace but as debt. But to him who does not work but believes on Him who justifies the ungodly, his faith is accounted for righteousness.