Is the sentence right or wrong? Pay attention to the reported speech.
Hannah: "Hurry up, or we'll miss the bus!"
Hannah told me to hurry up.
If we want to transform somebody's demand or request into reported speech, we use:
If the imperative was negative (don't go, don't do), we put "not" before the infinitive: tell somebody not to do something.