lol. There is a problem with your interpretation.
1. All have sinned (commited iniquity) so this would be every one who ever lived
2. These people claimed to have obeyed, And done all these works in Jesus name.
so my question to you is. If God says HE NEVER KNEW THEM. How could they---
1. Ever have been saved
2. Ever have known God
3. Ever have claimed to have true faith (since they evidently did some works of obeying God, God did not deny they did these works)
Mattithyah 7:21-23, "Not everyone who says to Me; Teacher! Teacher! will enter into the Kingdom of Yahweh, but only he who does the will of My Father Who is in heaven. Many will say to Me in that day; Teacher! Teacher! Have we not prophesied in Your Name, and cast out demons in Your Name, and in Your Name performed many wonderful works? But then I will declare to them; I never knew you. Get away from Me, you who practice iniquity."
These people claim to " Have we not prophesied in Your Name, and cast out demons in Your Name, and in Your Name performed many wonderful works" now many go "AHH HAH I GOT YOU WORKSWORKSWORKSWORKS you loseloseloselose!!!!! hahahahahahahah!!!!, but you see iniquity is not sin,
iniquity is not being subject to Yahweh's Law. How many people in the world do "great works in the name of the Messiah" but they do not do anything according to what Yahweh actually commands? No instead they develop their own standard and ignore Yahweh's standard.
So who is obedienit to Yahshua's Commands and who is not? the one who subjects himself to Yahweh's Law or the one who rejects and will not subject themself to Yahweh's Law?
iniquity is:
#0458 ἀνομία anomia {an-om-ee'-ah} from G0459
Greek Word Study (Transliteration-Pronunciation Etymology & Grammar)
1)
the condition of without law
1a) because ignorant of it
1b) because of violating it
2) contempt and violation of law, iniquity, wickedness
Thayer's (New Testament Greek-English Lexicon)
From G0459; illegality, that is, violation of law or (generally) wickedness:—iniquity, X transgress (-ion of) the law, unrighteousness.
Strong's (Greek Dictionary of the New Testament) #458.
α᾿νομι´α anomia; from 459; lawlessness:— lawless deed, lawless deeds, lawlessness
FROM:
#0459 ἄνομος anomos {an'-om-os} from G0001 (as a negative particle) and G3551; TDNT - 4:1086,646; adj
Greek Word Study (Transliteration-Pronunciation Etymology & Grammar)
1) destitute of (the Mosaic) law
1a) of the Gentiles
2) departing from the law, a violator of the law, lawless, wicked
Thayer's (New Testament Greek-English Lexicon)
From G0001 (as a negative particle) and G3551; lawless, that is, (negatively) not subject to (the Jewish) law; (by implication a Gentile), or (positively) wicked:— without law, lawless, transgressor, unlawful, wicked.
Strong's (Greek Dictionary of the New Testament) #459.
α῎νομος anomos; from 1 (as a neg. pref.) and 3551; lawless, without law:— godless men, lawless, lawless one, transgressors, without the law, without law, without law.