Change the narration: The teacher said "Do your homework carefully."
Change the narration: The teacher said "Do your homework carefully."
Explanation
"Told" is used in reported speech when giving instructions or advice, while "said" is typically used for general statements.
"Do" changes to "to do" in the reported speech form.