John Gill's Exposition of the Whole Bible
Psalms 119:172
My tongue shall speak of thy word,.... Of the word of God in general; of the truth of it, which he knew by certain experience; of the purity of it, tending to promote holiness of heart and life; of the power and efficacy of it, enlightening his mind, and working effectually in him; of the profit of it, to his learning, to his instruction, comfort, and refreshment; of the preciousness of it, being of more worth than thousands of gold and silver; and of the pleasantness of it, being sweeter than the honey or honeycomb, and more to be esteemed than one's necessary food; and of the promises of it in particular, of the worth and value of them, of their suitableness and use, and of the faithful fulfilment of them; and of the doctrines of the word, especially those which relate to the grace of God, and salvation by the Messiah; and also of the precepts of the word, as follows:
for all thy commandments [are] righteousness; not only righteous, but righteousness itself, being strictly just and equitable in the highest sense; and not only some of them, but all of them; see Psalms 119:128. Aben Ezra's paraphrase of the words is,
"I will teach the children of men thy word, that they may know that thy commandments are righteousness;''
which is not amiss: and to the same sense is Kimchi's note, who observes, that author of the Masorah interprets it of praise; as if he had said, My tongue shall praise thy word, because all of it is righteousness.