they relied on their work
Matthew 7
15 Watch out for false prophets.
Matthew 7
21 "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of heaven, but only he who does the will of my Father who is in heaven.
For my Father's will is that everyone who looks to the Son and believes in him shall have eternal life, and I will raise him up at the last day." John 6:40
Matthew 7
22 Many will say to me on that day, 'Lord, Lord, did we not prophesy in your name, and in your name drive out demons and perform many miracles?'
"For it is by grace you have been saved, through faith—and this not from yourselves, it is the gift of God— not by works, so that no one can boast." Ephesians 2:8-9
Matthew 7
23 Then I will tell them plainly, 'I never knew you. Away from me, you evildoers!'
but Israel, who pursued a law of righteousness, has not attained it. Why not? Because they pursued it not by faith but as if it were by works. They stumbled over the "stumbling stone." As it is written: "See, I lay in Zion a stone that causes men to stumble and a rock that makes them fall, and the one who trusts in him will never be put to shame." Romans 9:31-33
his work will be shown for what it is, because the Day will bring it to light. It will be revealed with fire, and the fire will test the quality of each man's work. If what he has built survives, he will receive his reward. If it is burned up, he will suffer loss; HE HIMSELF WILL BE SAVED, but only as one escaping through the flames. 1 Corinthians 3 13-15