Before Jesus went to the cross, He taught His disciples about the Holy Spirit, or the Comforter. In John 14:16-17, He said:
I will pray the Father, and he shall give you another Comforter, that he may abide with you for ever; even the Spirit of truth; whom the world cannot receive, because it seeth him [...]