8 The Lord shall judge the people: judge me, O Lord, according to my righteousness, and according to mine integrity that is in me.
***
Our righteousness is according to that which God told us to do or led us to do. When we do that, then our righteousness is of God for it was God who authored that which we have done or have said.
Isaiah 54:17 ... Their righteousness is of ME, saith the Lord.
Was it God who told me to say that thing?
Was it God who told me to do that thing?
Sometimes we are absolutely certain it was God who authored that which we said or that which we did.
Other times we might not know for sure. Then we can pray, asking God to judge us and asking God to make it clear to us.
I Peter 5:6 Humble yourselves therefore under the mighty hand of God, that HE may exalt you in due time:
*****