Ezk 36:27, Acts 5:30-32, 2 Cor 1:21-22

It was prophesied in the Old Testament that God would give us the Holy Spirit to keep God's law. (Ezk 36:27)

Ezk 36:27 And I will put my spirit within you, and cause you to walk in my statutes, and ye shall keep my judgments, and do them.

When we hear that Jesus is the Christ and believe in Him as the Christ, the Holy Spirit comes upon us. (Acts 5:30-32, Eph 1:13, 2 Cor 1:20-22)

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.

Eph 1:13 In whom ye also trusted, after that ye heard the word of truth, the gospel of your salvation: in whom also after that ye believed, ye were sealed with that holy Spirit of promise,

2 Cor 1:20 For all the promises of God in him are yea, and in him Amen, unto the glory of God by us. 21 Now he which stablisheth us with you in Christ, and hath anointed us, is God; 22 Who hath also sealed us, and given the earnest of the Spirit in our hearts.