Joshua 23:16avar
"When you transgress the covenant of the Lord your God, which He commanded you, and go and serve other gods and bow down to them, then the anger of the Lord will burn against you, and you will perish quickly from off the good land which He has given you."
Transgressing God's covenant by serving other gods brings judgment.
2 Chronicles 24:20avar
Then the Spirit of God came on Zechariah the son of Jehoiada the priest; and he stood above the people and said to them, "Thus God has said, 'Why do you transgress the commandments of the Lord and do not prosper? Because you have forsaken the Lord, He has also forsaken you.'"
Breaking the Lord's commandments means forsaking Him and failing to prosper.
1 Thessalonians 4:6huperbainō
{and} that no man transgress and defraud his brother in the matter because the Lord is {the} avenger in all these things, just as we also told you before and solemnly warned {you.}
Wronging a brother is transgressing, and the Lord avenges it.