To see a whip in your dream, signifies punishment, unhappiness shame and guilt. It may indicate some abusive situation or unfortunate circumstances. Alternatively, the whip suggests that you need to exercise more control over your life. You need to have more discipline or be more obedient. The dream also may be a metaphor for something that you need to "whip" up.
To dream that you are whipping someone, suggests that you are in control. You are aware of the power you have and may even be exploiting that power. The dream may also have sexual connotations. Perhaps your sex life is in need of a little excitement. Alternatively, the dream could also be a pun on "being whipped", as in either having someone who would do anything for you or that you yourself are the one who is "whipped".