Saying exactly what someone has said is called Direct Speech (sometimes also called Quoted Speech)
What a person says appears within quotation marks and is exactly what that person says:
Contrast this with Indirect Speech which is reporting what the person said at a later date: