Who led David to number the people? One place you read that it was God and yet in another place it was Satan. Is this a contradiction in the word of God?
David continues to be protected by the Lord. In some cases (as in the sparing of Saul), he acts in a most honorable way.