From The Gospel of Matthew by Curtis Mitch and Edward Sri, commenting on Matthew 25:13:
The lesson of the parable is summed up in the injunction: stay awake. Many find this a strange ending to a parable in which all ten virgins, the wise and foolish alike, fall asleep while waiting for the bridegroom (v. 5). Jesus, however, it talking about spiritual vigilance. One makes oneself ready for the Lord’s arrival by dutiful fulfillment of responsibilities. Failure to exercise prudence and diligence is dangerous in the spiritual life. After all, no one knows the day or the hour when the bridegroom will come.