It's important to note that the Lord didn't say to the foolish virgins what He will say to the hypocites on the day of judgment, "And then will I profess unto them, I never knew you: depart from me ye that work iniquity." Matthew 7:23

.................Jesus didn't call the virgins, workers of iniquity and He also didn't say 'I never knew you."

His words were in the present. "I know you not."

..................................He knew them as believers who had accepted Him as Saviour. But He couldn't recognize them as members of the Bridal party.