“…For the LORD seeth not as man seeth; for man looketh on the outward appearance, but the LORD looketh on the heart.”
1 Samuel 16:7 (KJV)
In 1 Samuel 13:14, God expressed how He sought out “a man after His own heart” to rule over His people.
He chose David to become king.
Now David was not the “perfect” example of a human being by any means. He made mistakes and errors just like everyone else.
David had even committed murder later on in his life. Some would consider that a “big sin”.