"Did not Moses give you the law, and yet none of you keepeth the law? Why go ye about to kill me? " (John 7: 19)
The religious leaders of during Jesus' earthly ministry wanted to stone him for blasphemy, yet He reminded them that none of them kept the law.
In fact, no one can:
"They are all gone aside, they are all together become filthy: there is none that doeth good, no, not one." (Psalm 14: 3)
David knew how bad he was, beyond what he had done:
"Behold, I was shapen in iniquity; and in sin did my mother conceive me.
6Behold, thou desirest truth in the inward parts: and in the hidden part thou shalt make me to know wisdom." (Psalm 51: 5-6)
Of course, Jesus had never blasphemed, but told the truth when he declared:
"Jesus said unto them, Verily, verily, I say unto you, Before Abraham was, I am." (John 8: 58)
"Therefore by the deeds of the law there shall no flesh be justified in his sight: for by the law is the knowledge of sin." (Romans 3: 20)
"Moreover the law entered, that the offence might abound. But where sin abounded, grace did much more abound:" (Romans 5: 20)
Now, we see that the law was never God's main agenda.
1In the beginning God created the heaven and the earth. 2And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. 3And God said, Let there be light: and there was light." (Genesis 1: 1-3)
God did look at the darkness which He had not created and curse it. He manifested His Son, the Light of the World, and went to work recreating a darkened world.
When Abram failed before Pharaoh, lying about his wife to protect himself, God plagued Pharoah, who in turn blessed Abram (Genesis 12). When Abraham lied before Abimelech about his wife, God against blessed Abraham yet threatened Abimelech (Genesis 20).
God would favor Abraham, so that in the end he would produce Isaac, through whom all the nations of the world would be blessed (Genesis 12: 1-3; 22: 15-19)
The grace of God came first, and even today, the grace of God, revealed and released to us through His Son Jesus, frees us from death and sin, to live righteous and godly lives.