Actually Jesus explains exactly why He "Never knew them" in the parts of His Word's that you conveniently omitted. It's just the opposite of what you preach. He didn't reject them because the were doing works. He rejected them for the same reason He rejected the Pharisees. They were doing Works, just not obedient works.
Matt. 7:
20 Wherefore by their fruits ye shall know them.
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.
So Jesus says we need works Decon. "doing God's Will" is a work, Despite your religion and preaching to the contrary.
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?
They, just like you, have works Decon. Sunday worship, Christmas, feeding random poor people, getting folks off drugs, etc.
23 And then will I profess unto them,
I never knew you: depart from me, ye that work iniquity. (Transgress God's Commandments)
They had works, they were just disobedient to His Fathers Commandments like the Pharisees, the Mainstream Preachers of Christ's time.. I can easily see why you would reject this part of Jesus Word given your constant boasting about your religious traditions.
What is it with you and your apparent dislike for what Jesus actually Says. You did the same thing regarding your preaching that the Pharisees were following God's Laws. You know, you should look into your preaching instead of condemning folks who trust ALL of Jesus Word, not just the parts that can be used to further ancient Catholic traditions.