Scripture tells us that God is righteous. We commonly define righteousness as being in right standing with God. But what does it mean for God to be righteous? It would be silly to think that He achieved a moral excellence that allowed Him to be good enough to be God. No, God doesn’t need to meet a standard of righteousness; He is that standard. God’s righteousness means that He is by nature the essence of all that is good and just.
Now since God’s righteousness is the benchmark by which He will ultimately judge the world, He had to provide mankind with the means to relate to His perfection. He revealed that standard through law. Law gives us our sense of right and wrong—a moral awareness at the very core of our being. This is why a good understanding of biblical law is so important. It helps us appreciate God’s amazing provision for our own righteousness.
From Free from the Power of Sin: the Keys to Growing in God in Spite of Yourself