King James Version
And while they went to buy, the bridegroom came; and they that were ready went in with him to the marriage: and the door was shut.English Standard Version
And while they were going to buy, the bridegroom came, and those who were ready went in with him to the marriage feast, and the door was shut.New International Version
"But while they were on their way to buy the oil, the bridegroom arrived. The virgins who were ready went in with him to the wedding banquet. And the door was shut.