Echolalia

Repeating things that you have heard before, like a line in a tv show.