Calvin has some beautiful comments on God’s discipline of his people in his Institutes (Inst. 3.4.32).
“the chastening of God carries his blessing with it, and is an evidence of love, as Scripture teaches.” (see Job 5:17; Prov. 3:11; Heb. 12:5)
“All the calamities which the wicked suffer in the present life are depicted to us as a kind of anticipation of the punishment of hell. In these they already see, as from a distance, their eternal condemnation…the Lord chastens his servants sore, but does not give them over to death (Ps. 118:18).”