Psalms 119:7 (KJV)

I will praise thee with uprightness of heart, when I shall have learned thy righteous judgments.