1 Kings 8:35anah
"When the heavens are shut up and there is no rain, because they have sinned against You, and they pray toward this place and confess Your name and turn from their sin when You afflict them,
God afflicts his people for sin, prompting prayer and repentance.
Nahum 1:12anah
Thus says the Lord, "Though they are at full {strength} and likewise many, Even so, they will be cut off and pass away. Though I have afflicted you, I will afflict you no longer.
God promises to stop afflicting his people.