Romans 3:27 Where is boasting then? It is excluded. By what law? of works? Nay: but by the law of faith.
God wants all the glory for our salvation. He did the work and He will get the glory. He did that by giving us salvation as a gift. He tells us that all of our works are of no value. Salvation is a God thing so none of us will be able to brag about anything.