David was a man after God's own heart, and it started with repentance having a humble heart toward God.