Sayyiduna Samurah (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) commanded us that when the imam says the salam (to end the prayer), we should respond to him.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6860