For all His ordinances were before me, and as for His statues, I did not depart from them.
I was also blameless toward Him, and I kept myself from my iniquity. (2 Samuel 22:23-24 NASB)
We know David was not blameless in the literal sense, and he (when grieving and asking God not to depart from him because of the sin with Bathsheba) certainly recognized this as well. Why would David state that he was blameless towards the Lord, and what does the interesting phrase, “I kept myself from my iniquity” mean?