O Lord my God, if I have done this; i.e. "this which is laid to my charge." The general charge against David in Saul's lifetime was that he "sought the king's hurt" (1 Samuel 24:9). Afterwards he was accused of being "a bloody man" (2 Samuel 16:8)—the death of Ishbosheth, and perhaps of others, being regarded as his work.
If there be iniquity in my hands. If, i.e; I have committed any criminal act, if any definite offence can be charged against me. Human weakness and imperfection David does not mean to deny, but, like Job, he maintains in a certain qualified sense his righteousness.