WCF 5.5.
The most wise, righteous, and gracious God doth oftentimes leave, for a season, His own children to manifold temptations, and the corruption of their own hearts, to chastise them for their former sins, or to discover unto them the hidden strength of corruption and deceitfulness of their hearts, that they may be humbled; (2 Chron. 32:25–26, 31, 2 Sam. 24:1) and, to raise them to a more close and constant dependence for their support upon Himself, and to make them more watchful against all future occasions of sin, and for sundry other just and holy ends. (2 Cor. 12:7–9, Ps. 73, Ps. 77:1, 10, 12, Mark 14:66–72, John 21:15–17)