David's sin was ever before him, and it may have been used by the Lord to bless the man, helping him to become Israel's great psalmist.