That's the exact opposite of what Jesus said.
"And I saw the dead, small and great, standing before God, and books were opened. And another book was opened, which is the Book of Life." (Revelation 20:12)
"And they were judged, each one according to his works." (Revelation 20:13)
Of course salvation is by grace, position is by works.
Works count for nothing. The only thing that God acknowledges in the New Testament is faith.
The only works that God accepts is the work of Christ.