The sentence expresses a command or order.
In reported speech, an imperative sentence is generally changed using told + object + to + verb.
The reporting verb said to changes into told when an object is mentioned.
The verb hurry remains in its base form after to.
Structure:
Direct Speech: Subject + said to + object + "Imperative sentence"
Indirect Speech: Subject + told + object + to + verb.
Examples:
He said to me, "Open the door."
→ He told me to open the door.
The teacher said to the students, "Keep quiet."
→ The teacher told the students to keep quiet.