However the subject of that paragraph in the WCF is dealing with personal sin.
How the sins of a nation affect the entire nation and judgement that comes because of it would make a wonderful OP. I hope you will start one.
No I don't read it that way because of the Scripture they attached to what was stated:
To better explain, because I probably did a horrible job above.
The first passage deals with Hezekiah and God's threat of national judgment due to it (because Hezekiah was the head of state):
"But Hezekiah’s heart was proud and he did not respond to the kindness shown him; therefore the LORD’s wrath was on him and on Judah and Jerusalem." 2 Chronicles 32:25
2 Chronicles 32:25 - Hezekiah's Illness and Recovery
Hezekiah as head brought judgement on the entire nation. Of course repentance turns back judgment, as Scripture shows:
Hezekiah eventually repented:
"But Hezekiah humbled himself for the pride of his heart, both he and the inhabitants of Jerusalem, so that the wrath of the LORD did not come upon them in the days of Hezekiah." (v. 26)
But Hezekiah was given an opportunity of testing anyway:
"And so in the matter of the envoys of the princes of Babylon … God left him to himself, in order to test him and to know all that was in his heart."
So here the national judgment was averted due to the repentance of both Jerusalem (religious/spiritual head, the church) and Hezekiah, the acting head of state who brought it on in the first place, with him facing a temptation or trial that he fell to in order to show him his sin, that of pride/vanity.
Next the WCF cites a passage from Samuel about judgement over the sins of Israel: The account of David’s census is in 2 Samuel 24 (and paralleled in 1 Chronicles 21). It’s one of the more theologically rich.
There was first the census command:
"Again the anger of the LORD was kindled against Israel, and he incited David against them, saying, 'Go, number Israel and Judah.'" (2 Sam. 24:1)
The text says God’s anger was already burning against Israel. The Scripture doesn’t specify the exact sin here, but it shows that there was a national condition—not just David’s personal failing—that merited judgment.Because of that national sin, in God's sovereignty, He used David’s decision to call for a census as a means of bringing judgment.
In the parallel text (1 Chron. 21:1), it says “Then Satan stood against Israel and incited David to number Israel.”
These are not contradictions but two perspectives: God sovereignly ordained the trial (His anger burned), while Satan acted as the immediate agent tempting David. God permitted Satan to carry out this incitement, much like in the book of Job.
David’s command resisted: Joab, the commander, objected:
"May the LORD your God add to the people a hundred times as many as they are… but why does my lord the king delight in this thing?" (v. 3). Even Joab, not known for great piety, sensed this was wrong. But David insisted.
2. Why Was the Census Sinful?
Taking a census was not inherently sinful—God commanded censuses elsewhere (e.g., Num. 1). The issue here seems to be motive and pride:
David likely sought to measure his military strength, putting confidence in numbers rather than the Lord.
It was an act of self-exaltation and unbelief, shifting the nation’s security from God’s promises to human resources.
This fits the broader biblical pattern: pride often emerges at moments of strength or prosperity (like Hezekiah’s pride after recovery).
3. God’s Judgment
After the census was taken, David’s conscience struck him:
"David’s heart struck him after he had numbered the people. And David said to the LORD, 'I have sinned greatly in what I have done.'" (v. 10)
God sent the prophet Gad to offer David three choices of judgment:
Three years of famine.
Three months of fleeing before enemies.
Three days of pestilence.
David’s response:
"I am in great distress. Let us fall into the hand of the LORD, for his mercy is great; but let me not fall into the hand of man." (v. 14)
God sent a plague: 70,000 people died. The reason I believe that God invited David to the census temptation over Israels sins rather than his own was because David was likewise the head of Israel.
So, headship matters - and I mean it really matters in ways most people don't consider.
However the end of the story here is that God stayed the angels hand at Jerusalem, saving them from the plague.
So I see the WCF to be speaking about national sin and personal sin, times of trials and testing