Have mercy upon me, O GOD, according to thy lovingkindness: according unto the multitude of thy tender mercies blot out my transgressions. Wash me throughly from mine iniquity, and cleanse me from my sin. For I acknowledge my transgressions: and my sin is ever before me. Against thee, thee only, have I sinned, and done this evil in thy sight: that thou mightest be justified when thou speakest, and be clear when thou judgest. Psalm 51:1-4
In the above scripture, David is asking God for forgiveness after he had slept with Bathsheba and had her husband killed.
David was considered a man after God's own heart. He was King over Israel, had been delivered (by God) from the hand of Saul, and had many wives.Yet he still felt the need to obtain someone else. It is one thing to have a desire to acquire additional possessions or wealth; but it is another thing to desire and obtain someone's spouse. We have to be very careful not to covet that which belongs to someone else.
When David was approached by Nathan (who was sent by God), to tell him of his sin, David became angry and judgemental when he thought Nathan was talking about someone else. However, when Nathan told him that it was him who he was referring to, David became sorrowful (read Psalm 51).
It is easy for us to be judgemental of other's wrongdoings, but neglect to see our own. When approached about your wrongdoing, do you become sorrowful or remorseful, or do you make excuses and try to cover it up?
David had a change of heart and asked God for forgiveness. I would love to say that David didn't do anything else wrong; just as I would love to say we won't do anything wrong. But what I will say is that we shouldn't purposely sin, and when we do sin, we need to acknowledge that we have sinned, immediately ask God for forgiveness, and not go back to it.
Purge me with hyssop, and I shall be clean: wash me, and I shall be whiter than snow. Make me to hear joy and gladness; that the bones which thou hast broken may rejoice. Hide thy face from my sins, and blot out all mine iniquities. Create in me a clean heart, O God; and renew a right spirit within me. Cast me not away from thy presence; and take not thy holy spirit from me. Restore unto me the joy of thy salvation; and uphold me with thy free spirit. Psalm 51:7-12