22:22-24 David composed these words much earlier (22:1), before his sin with Bathsheba. Still, his claim to being blameless should not be construed as a claim to perfection. David was simply noting that he had kept the covenant and followed its law.