And opening to them the mysteries of the Kingdom of God, He commanded them not to depart from Jerusalem. Why did He command them to do so? Earlier, when they were fearful and trembling, He led them out to Galilee so that they could fearlessly hear what He had to say to them, since they were ready to abandon the work to which they had been called. Now, when they had listened and spent forty days together, He commanded them not to depart from Jerusalem. Why was this? Because just as no one allows soldiers who must attack a great opposing force to go out against it before they have had time to ar...m themselves, and just as no one would agree to release horses before the charioteer has mounted, so too the Lord does not permit the apostles to appear at the contest before the descent of the Holy Spirit, lest the vast majority overpower and capture them. Moreover, the Lord does not permit them to depart from Jerusalem not only for this reason, but also because many here too were destined to believe, and thirdly, so that no one might say that, having left their own people, they went off to seek glory among strangers. Therefore they spread the undeniable proofs of the Resurrection among those very people who killed the Lord, who crucified and buried Him, and in that very city where they had the audacity to commit such lawlessness. When did they hear this command? When He said to them: "It is better for you that I go; for if I do not go, the Comforter will not come to you" (John 16:7); and again: "I will pray the Father, and He will give you another Comforter" (John 14:16). But why did the Comforter not come while He was still present, nor immediately after His departure, but eight or nine days later, that is, at the time when the day of Pentecost arrived? Furthermore, how is it that when the Holy Spirit had not yet descended, He said: "Receive the Holy Spirit" (John 20:22)? To this it must be said that He spoke thus in order to arouse in them the desire, readiness, and capacity to receive the Holy Spirit, and they received Him when He descended; or He spoke of what was yet to be as though it already existed and was present, just as when He spoke of the ability to "tread on serpents and scorpions and over all the power of the enemy" (Luke 10:19).
However, it should also be said that the gifts of the Spirit are various and manifold: there is the gift of purification and perfection, the gift of sanctification and sanctifying power, the gift of tongues and prophecy, the gift of miracles and interpretation, and a multitude of other gifts.
So, given the distinction and diversity of the gifts of the Spirit, nothing any longer prevented the apostles from receiving the grace of the Spirit in various ways. But the full communication of the Spirit to them, which made the apostles perfect and capable of perfecting others, was at Pentecost, when He descended upon them in the form of fiery tongues and entirely filled them with His power. The Lord departed, and then the Holy Spirit came, and He came at Pentecost and not immediately, so that they would be filled with longing and only then receive the grace. And if the Holy Spirit had come while the Son was still present, and then the Son had departed while the Spirit remained, there would not have been as much consolation for them, because they were very reluctant to part from their Teacher. Therefore He ascends and the Spirit comes not immediately, so that after some despondency He might awaken in the disciples a desire and awareness of the necessity of the promise given to them, and so that at the time of the descent they would experience pure and complete joy. Moreover, it was fitting that our flesh should first appear in the heavens and that the fullest reconciliation should be accomplished, and only then should the Holy Spirit descend. Know, then, what obligation to remain in Jerusalem the Lord placed upon them through the given promise. So that after the Ascension they would not scatter again, He holds them all there by this expectation, as if by certain bonds, and by the promise of more advantageous hopes disposes them toward a stronger desire for those hopes, even though they were unknown. But no one would err in saying that even then they received a certain power and grace of the Spirit — not such as to raise the dead, but they received the power to forgive sins. Therefore He also added: "Whose soever sins ye remit, they are remitted unto them; and whose soever sins ye retain, they are retained" (John 20:23), showing by this what kind of power exactly He was granting them. At that time He clothed them with precisely this power; but after forty days He grants them the power to work miracles; therefore He also says: "ye shall receive power" (Acts 1:8), and so forth.
Source: Commentary on Acts