Saying exactly what someone has said is called quoted speech.
English speakers prefer to use reported speech, such as in the following sentence.
The teacher told us that there would be a test tomorrow. This lesson will show you how to change quoted speech to reported speech. When changing from quoted speech to reported speech, several changes occur. In all sentences, the quotation marks and the comma immediately before the first quotation mark are removed. Then, the subject pronoun is changed so that the meaning of the quote is not changed.