He did this because David had done what he approved and had not disregarded any of his commandments his entire lifetime, except for the incident involving Uriah the Hittite.
“Please, Lord. Remember how I have served you faithfully and with wholehearted devotion, and how I have carried out your will.” Then Hezekiah wept bitterly.
So the Lord said to Satan, “Have you considered my servant Job? There is no one like him on the earth, a pure and upright man, one who fears God and turns away from evil.”
But Jesus said to them, “You are the ones who justify yourselves in men’s eyes, but God knows your hearts. For what is highly prized among men is utterly detestable in God’s sight.
For our reason for confidence is this: the testimony of our conscience, that with pure motives and sincerity which are from God – not by human wisdom but by the grace of God – we conducted ourselves in the world, and all the more toward you.
so that you may be blameless and pure, children of God without blemish though you live in a crooked and perverse society, in which you shine as lights in the world
Therefore, dear friends, since you are waiting for these things, strive to be found at peace, without spot or blemish, when you come into his presence.