We see the same scene (and similar language) in Matthew 7:21-23: “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. 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? And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.”
Which “day” is Jesus talking about? His return. There are many people like that in this world. They have religion, but no real relationship. It says here: what they did in life was “in His name,” yet they were locked outside. They ask Jesus: “have we not ... in thy name done many wonderful works?” From this statement we can take it: they expected to be in heaven. However, Jesus will say to them, “I never knew you: depart from me, ye that work iniquity.”
How will these religious people handle these sobering words of Christ on that final day of judgement? They were foolish to swallow a religious lie. They sat under preaching that told them that they could get to heaven by their own good works. All their religious efforts were in vain. It was a sham. The foolish virgins are locked outside because they reject Christ; Christ then rejects them at the end. That is why He doesn’t know them. He has no relationship with them. Their religion is vain. It is bogus. They have missed their opportunity, now they must receive the judgment. This is just a parallel of all that were locked outside the ark at the flood. They are going to be banished into outer darkness – for all eternity with the rest of the wicked.
The Lord similarly teaches in Luke 13:24-28, “Strive to enter in at the strait gate: for many, I say unto you, will seek to enter in, and shall not be able. When once the master of the house is risen up, and hath shut to the door, and ye begin to stand without, and to knock at the door, saying, Lord, Lord, open unto us; and he shall answer and say unto you, I know you not whence ye are: Then shall ye begin to say, We have eaten and drunk in thy presence, and thou hast taught in our streets. But he shall say, I tell you, I know you not whence ye are; depart from me, all ye workers of iniquity. There shall be weeping and gnashing of teeth.”
Oh what an awful day that will be, when the wicked find themselves locked outside of God’s ark – the Lord Jesus Christ. Damned without hope or without Christ. This reminds me of the actual day that Noah entered into the ark in Genesis 7:16. It solemnly tells us of Noah and the ark door, “and the LORD shut him in.” What happened to those locked outside. They were totally and immediately destroyed.
The whole unsaved world will see Jesus return when He comes (Rev 1:7) and realize they have missed it. This is where they mourn and cry (or knock as the parable of the 10 virgins put it), but it is too late. Jesus then pours out His wrath on these rebels causing their immediate and total destruction. Jesus tells us that it will be like Noah's day when Jesus locked His elect in and those outside the door who missed the boat were immediately judged. He destroyed them all (Luke 17). It was same in the city of Sodom. He destroyed all the wicked after bringing His elect out (Luke 17).
Those awful words “depart from me, ye that work iniquity” spell eternal damnation for every person left outside of the ark when Jesus comes. People are either ‘caught up’ or ‘caught on’. In fact anytime Jesus employed these words it always referred to His coming and the solemn sentences that damned the ungodly. Jesus said of the goats in Matthew 25:41: “Then shall he say also unto them on the left hand, Depart from me, ye cursed, into everlasting fire, prepared for the devil and his angels.”