Read Galatians 3:5 Using Other Translations
He therefore that ministereth to you the Spirit, and worketh miracles among you, doeth he it by the works of the law, or by the hearing of faith?
Does he who supplies the Spirit to you and works miracles among you do so by works of the law, or by hearing with faith--
I ask you again, does God give you the Holy Spirit and work miracles among you because you obey the law? Of course not! It is because you believe the message you heard about Christ.