Some people are very strict with themselves, so they tend to dream of flagellation. This represents their reproaches against themselves. Through flogging you punish yourself for what your "internal judge" considers wrongdoing. Moreover, this mechanism also diverts attention from any other pain or uncertainty you may have. In short, the dream reveals that there is a negative aspect you should change in your life.