Are there any examples of divine retribution beforehand?
I understand tower of babel, sodom and gomorrah, plagues of egypt..
Those were punishments for crimes/sins against god that were going on at the time of the punishment.
Do you know of any punishments given out BEFORE a crime/sin was committed to deter the sinner?