Echolalia

 

The pathological, parrot like, and apparently senseless repetition (echoing) of a word or phrase just spoken by another person.