Punishment dreams
Project info

In punishment dreams, the dreamer is explicitly or implicitly punished for a fault, often indicated as excusable or unknown to the dreamer.
he painful quality of dreams of punishment seems to contradict the theory that a dream represents a gratification of a wish. Freud asserted that dreams of punishment indeed represent precisely the wish to be punished, to expiate a fault. In this process, there is no return of a repressed wish but rather a need for punishment that originates with the ego or rather (as he soon would call it, in a note added in 1930) the superego.