"Then David said to Nathan, “I have sinned against the Lord.” (2 Samuel 12: 13 NIV)
David was a man after God's heart. Why? Once he is convicted of sin, never offers excuses. When you sin, say to God immediately: "I have sinned. Have mercy on me." If your sin is very serious, pray Psalm 51 and then go for Reconciliation the very first opportunity.