Psalm 119:7
I will praise You with an upright heart when I learn Your righteous judgments.
Berean Standard Bible
I will praise thee with uprightness of heart, when I shall have learned thy righteous judgments.
I will give thanks to you with uprightness of heart, when I learn your righteous judgments.