The Five Foolish virgins, however; had to leave at last, to buy enough oil, as the Bridegroom approached his feast. The Bible is not your real source of sanctifying grace; it only introduces you to Christ. You can make whatever you like of it, after that.
Remember, every Pharisee was schooled in the Scriptures.
So, the Five foolish virgins got back later, after "obtaining" what grace they could from their faith.
But the door wasn't opened for them.