Actually, lets look at the passage.
Matt. 7:
21 Not every one that saith unto me, Lord, Lord,
shall enter into the kingdom of heaven;
but he that doeth the will of my Father which is in heaven.
I know how popular it is to preach we have no say in our own salvation. But Jesus is specifically saying here that those "WHO DO SOMETHING" are those who will enter the Kingdom of heaven. I assume you equate this with Salvation, Yes? So to say a "Christian" knows our works have no bearing on Salvation is a direct departure from the very Word's of the Christ in this passage. How do you reconcile this?
22 Many will say to me
in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works?
Is it not important to understand what the Christ is saying here? What is "that day"? Is it not the Last Great Day? When all who have not been resurrected in the First resurrection are judged? Had they been accepted, they would have been included in the First Resurrection, YES?
So these folks who all their life called Jesus Lord, Lord, gave Him all the credit for all their works, helped others in His Name had died, and their eyes were opened in "That Day". What would they see? A Lake of Fire, Yes? So when they saw where they were, when they realized their fate, they defended their religion. I would expect everyone will "in that day".
23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity. "Lawlessness"
So the reason Jesus gave for rejecting them was directly tied to their WORKS. Specifically disobedient works.
How can you say Works don't matter in our salvation when Jesus plainly says why He rejected them. It wasn't because of the things they did in His Name, it was because they didn't trust the Father enough to obey Him. Choosing instead to promote religious works or traditions which "transgressed the commandments of God". Isn't this the same reason Jesus rejected the Mainstream Preachers of His time?
Just saying.