In Numbers 23:21, it is recorded that God never beheld the iniquity of Jacob. “He hath not beheld iniquity in Jacob, neither hath he seen perverseness in Israel: the Lord his God is with him; and the shout of a king is among them.” Jacob represented the nation of Israel. because of the power of grace, God did not behold the iniquity of doubleminded David.
David failed and sinned with Bathsheba. He arranged the death of her husband, Uriah, but David was not removed from the throne. He was disciplined, and went through the pain of suffering, but he did repent of his sin. Discipline had to be carried on for a season in his life because of the terrible things he did. Yet, he never, never, received anything from God but grace! The Word of God says, in Acts 13:22, that before David died, he fulfilled all of God’s will, and he had a heart after Christ. “And when he had removed him, he raised up unto them David to be their king; to whom also he gave testimony, and said, I have found David the son of Jesse, a man after mine own heart, which shall fulfil all my will.” We also have the sure mercies of David. “And as concerning that he raised Him [Christ] up from the dead, now no more to return to corruption, he said on this wise, I will give you the sure mercies of David” (Acts 13:34).