It's part of Paul's teachings.
But if ye be led of the Spirit, ye are not under the law.
Galatians 5:18
There is therefore now no condemnation to them which are in Christ Jesus, who walk not after the flesh, but after the Spirit.
For the law of the Spirit of life in Christ Jesus hath made me free from the law of sin and death.
Romans 8:1-2
And unto the Jews I became as a Jew, that I might gain the Jews; to them that are under the law, as under the law, that I might gain them that are under the law;
To them that are without law, as without law, (being not without law to God, but under the law to Christ,) that I might gain them that are without law.
1 Corinthians 9:20-21
But ye are not in the flesh, but in the Spirit, if so be that the Spirit of God dwell in you. Now if any man have not the Spirit of Christ, he is none of his.
Romans 8:9
And grieve not the holy Spirit of God, whereby ye are sealed unto the day of redemption.
Ephesians 4:30