What precedes this line “..according to his works.” Now realize that works are not a fruit, nore are they a self generated act, they are the glorification of the Lord in this world, His work, all preformed at the cleaving g our will to his and in doing so, decreasing so that He may increase with in us. Faith with out works is dead, just as works with out faith are worthless.
What works could you do to become righteous before GOD?
John 6:28-29 Then they said to Him, "what shall we do,that we may work the works of God?"
Jesus answered and said to them, "This is the work of God, that you believe in Him whom He sent."
Any assembly that teaches you must do works to be saved is not listening to our LORD and SAVIOUR. If the assembly can't be shown how wrong they are flee.