God's Word is His law.
"A new heart also will I give you, and a new spirit will I put within you: and I will take away the stony heart out of your flesh, and I will give you an heart of flesh.
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." Ezek 36:26,27. When His Spirit is within us, we are empowered by His Spirit to obey His Word/His law.
Jesus said, "Not everyone that saith unto Me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of My Father which is in heaven.
MANY will say to Me in that day, Lord, Lord, have we not prophesied in Thy name? and in Thy name have cast out devils? and in Thy name done many wonderful works?
And then will I profess unto them, I NEVER KNEW YOU: depart from Me, ye that work iniquity." (lawlessness) Matt 7:21-23.
"And hereby we do know that we know Him, if we keep His commandments. He that saith, I KNOW HIM and keepeth not His commandments, is a liar and the Truth is not in him. But whoso keepeth His Word, in him verily is the love of God perfected: hereby we do know that we are in Him." 1 John 2:3-5.
Jesus said, "My sheep hear My Voice (His Word), and I KNOW THEM, and they follow Me." John 10:27.
Jesus said, "He that rejecteth Me and receiveth not My Words, hath one that judgeth him, the Word that I have spoken, the same shall judge him in the last day." John 12:48.
The Apostle John wrote, "Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law." 1 John 3:4.
The Apostle Paul wrote, "For as many as have sinned without law shall also perish without law: and as many as have sinned in the law shall be judged by the law; For not the hearers of the law are just before God, but the doers of the law shall be justified." Rom 2:12,13.
"Jesus answered and said unto him (Nicodemus) Verily, verily I say unto thee, Except a man be born again, he cannot see the kingdom of God...Except a man be born of water and of the Spirit, he cannot enter into the kingdom of God. That which is born of the flesh is flesh, and that which is born of the Spirit is spirit...Marvel not that I said unto thee, YE MUST BE BORN AGAIN." John 3:3-7.
Religion is going to church, performing the traditions and thinking that you have eternal life. When you invite His Spirit to live within you, you will have eternal life - because He is eternal life.
"But be ye doers of the Word, and not hearers, only, deceiving yourselves." Ja 1:22.