"I am bound by the Spirit." The word "bound" should be separated by a comma, so that the following meaning emerges: I go to Jerusalem, being bound, not having learned beforehand from the Spirit what will happen to me. It is remarkable that the prophets do not know everything, but only what the Holy Spirit reveals to them. Here too Paul, having foretold as a prophet everything that was to happen to him, and that among the Ephesians there would be bad believers and heretics, said that one thing he does not know — what the end of all this will be, because, having revealed everything to him, the L...ord concealed from him this one thing, namely: what will happen to him after the bonds and sorrows. This was so that, knowing precisely what he must pursue, and becoming proud, he would not fall through pride. The Holy Spirit left him in doubt, so that, fearing the weakness of the flesh, he would pray to God for deliverance from temptations.
Source: Commentary on Acts