Psalm 18:23
I was also upright before him, and I kept myself from mine iniquity.
Cross-reference
Psalm 11:7 says God loves righteousness and beholds the upright — directly matching David's claim of being upright in Psalm 18:23.
Psalm 17:3 has David saying God tested him and found no sin — parallel to his blamelessness and keeping from iniquity here.
In Psalm 19:13, the psalmist prays to be kept from presumptuous sins, echoing David's active keeping from iniquity.
In Psalm 119:101, the psalmist refrains from every evil way to keep God's word — a direct parallel to David's self-restraint.
Psalm 37:27 commands departing from evil — David's practice of keeping from iniquity in Psalm 18:23 exemplifies this.
1 Samuel 26:23 recounts David refusing to kill Saul, keeping from iniquity — the same principle as Psalm 18:23's self-description.
1 Chronicles 29:17 has David affirming God delights in uprightness and his own upright heart — parallels his blamelessness here.
In Job 1:8, God describes Job as upright and eschewing evil — the same blamelessness David claims here.
In Hebrews 12:1, believers are urged to lay aside sin — the same active avoidance of iniquity David practiced.
In 1 John 5:18, the one born of God keeps himself from sin — a direct New Testament echo of David's self-keeping.