2nd Samuel 13-18 David said to Nathan, “I have sinned against the Lord.” And Nathan said to David, “The Lord also has put away your sin; you shall not die.
1 Sam 13:14; Acts 13:22 14 But now your kingdom shall not continue. The Lord has sought out a man after his own heart, and the Lord has commanded him to be prince over his people, because you have not kept what the Lord commanded you.”
David was a man after God’s own heart in that he was committed to God’s ways and demonstrated fidelity to God’s Law. However, David was far from morally pure. He was a murderous adulterer (2 Sam 11). He killed Uriah the Hittite, and committed adultery with Bathsheba, Uriah’s wife.
What defines us is the way we come out of that mistake, what we learn from it and how we change ourselves from the lessons learned.
Never feel disqualified from getting in the presence of God when you make a mistake. Never forget, we’re human, and as human beings we make mistakes. Repent, and move on and never forget that your mistake doesn’t disqualify you from receiving love from God.