Acts 5:32, Jn 14:26,16, Joel 2:28

In the Old Testament, God promised to pour out the Holy Spirit on those who obey Him. (Joel 2:28)

Joel 2:28 And it shall come to pass afterward, that I will pour out my spirit upon all flesh; and your sons and your daughters shall prophesy, your old men shall dream dreams, your young men shall see visions:

The Holy Spirit did not come on the Jews who kept the law, but on those who believed in Jesus as the Christ. In other words, to believe in Jesus as the Christ is to obey God. (Acts 5:30-32, Acts 2:33,38-39)

Acts 5:30 The God of our fathers raised up Jesus, whom ye slew and hanged on a tree. 31 Him hath God exalted with his right hand to be a Prince and a Saviour, for to give repentance to Israel, and forgiveness of sins. 32 And we are his witnesses of these things; and so is also the Holy Ghost, whom God hath given to them that obey him.

Acts 2:33 Therefore being by the right hand of God exalted, and having received of the Father the promise of the Holy Ghost, he hath shed forth this, which ye now see and hear. 38 Then Peter said unto them, Repent, and be baptized every one of you in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Ghost.

39 For the promise is unto you, and to your children, and to all that are afar off, even as many as the Lord our God shall call.

God pours out the Holy Spirit on us through Jesus. And the Holy Spirit makes us realize that Jesus is the Christ. (Jn 14:16,26)

Jn 14:16 And I will pray the Father, and he shall give you another Comforter, that he may abide with you for ever; 26 But the Comforter, which is the Holy Ghost, whom the Father will send in my name, he shall teach you all things, and bring all things to your remembrance, whatsoever I have said unto you.