Punishment

To dream that you are punished, indicates that you are feeling guilty or shame about something you've done in real life.

To dream that you are punishing others represents your anger or hatred toward that person.