[18:22] 1 tn Heb “for all his regulations [are] before me.” The Hebrew term מִשְׁפָּטִים (mishpatim, “regulations”) refers to God’s covenantal requirements, especially those which the king is responsible to follow (cf. Deut 17:18-20). See also Pss 19:9 (cf. vv. 7-8); 89:30; 147:20 (cf. v. 19), as well as the numerous uses of the term in Ps 119.
[18:22] 2 tn Heb “and his rules I do not turn aside from me.” 2 Sam 22:23 reads, “and his rules, I do not turn aside from it.” The prefixed verbal form is probably an imperfect; the psalmist here generalizes about his loyalty to God’s commands. The Lord’s “rules” are the stipulations of the covenant which the king was responsible to obey (see Ps 89:31; cf. v. 30 and Deut 17:18-20).
[18:23] 3 tn Heb “from my sin,” that is, from making it my own in any way.
[18:24] 4 tn Heb “according to my righteousness.”
[18:24] 5 tn Heb “according to the purity of my hands before his eyes.” 2 Sam 22:25 reads “according to my purity before his eyes.” The verbal repetition (compare vv. 20 and 24) sets off vv. 20-24 as a distinct sub-unit within the psalm.