2102 Then he promises that they will be instructed by the coming of the Holy Spirit, who will teach them all truth. For since the Holy Spirit is from the Truth, it is appropriate that the Spirit teach the truth, and make those he teaches like the one who sent him. He says, all the truth, that is, the truth of the faith. He will teach them to have a better understanding of this truth in this life, and a fullness of understanding in eternal life, where we will know as we are known (see 1 Cor 13:12); "His anointing teaches you about everything, and is true, and is no lie" (1 Jn 2:27). Or, all the... truth, that is, of the figures of the law, which understanding the apostles received from the Holy Spirit. We read in Daniel (1:17) that the Lord gave to his children wisdom and understanding.
2103 Now he excludes a difficulty which could have arisen. If the Holy Spirit will teach them, it seems that he is greater than Christ. This is not true, because the Spirit will teach them by the power of the Father and the Son, for he will not speak from himself, but from me, because he will be from me. Just as the Son does not act from himself but from the Father, so the Holy Spirit, because he is from another, that is, from the Father and the Son, will not speak from himself, but whatever he will hear by receiving knowledge as well as his essence from eternity, he will speak, not in a bodily way but by enlightening your minds from within: "I will bring her into the wilderness, and speak tenderly to her" (Hos 2:14); "Let me hear what God the Lord will speak" (Ps 85:8).
2104 Since the Holy Spirit hears from eternity, why does he say he will hear? We should say to this that eternity includes all time. Consequently, the Holy Spirit, who hears from all eternity, is said to hear in the present, in the past, and in the future. Yet at times he is said to hear in the future because the knowledge in question concerns things that are still in the future. He will speak, therefore, whatever he will hear, for he will not only teach about things that are eternal, but future things. Thus he adds, he will declare to you the things that are to come, which is a characteristic of God: "She has foreknowledge of signs and wonders" (Wis 8:8); "Tell us what is to come hereafter, that we may know that you are gods" (Is 41:23). This is characteristic of the Holy Spirit: "I will pour out my spirit on all flesh; your sons and your daughters shall prophesy" (Joel 2:28). So they would have no doubts about how they would know of the coming tribulations, which Christ predicted for them, he adds, and he will declare to you the things that are to come, that is, upon you.
Source: Commentary on John