Blows that wound scour away evil, and beatings purge the innermost being.
Proverbs 20:30 TLV

Troubles in life are often the result of bad decisions or warnings to change course. If you ignore those warnings, the troubles will only get worse.