The Bible clearly teaches that judgment is a direct result of sin, as seen in the consequences experienced by Israel.
The connection between sin and judgment is a recurring theme in Scripture, most notably illustrated in the experiences of Israel. In the book of Hosea, the prophet reveals that Israel's pride, whoredom, and reliance on other nations led them to experience significant judgment and loss of strength. Hosea 5:5 emphasizes that judgment comes upon those who persist in their iniquities, while their decaying state — symbolized by grey hairs — shows that they are unaware of their spiritual plight. This emphasizes that when a people or a nation turns away from God and indulges in sin, they invite judgment upon themselves, which can manifest in various forms such as social chaos, spiritual apathy, or even national decline. Thus, the faithful are called to recognize these patterns and heed the warnings of Scripture, leading them toward repentance and restoration.
Commentary