Fetching details from the dictionary...

(divine) punishment; curse; retribution
嘘をつくと罰が当たると言われている。
It is said that lying brings divine punishment.
悪いことをした罰として外出禁止になった。
As punishment for wrongdoing, I was grounded.
罰が当たったのか今日は災難続きだ。
Maybe I am being punished; today has been full of misfortunes.