It is narrated from Sayyiduna Samurah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) ordered us "to give the salam to our imam and to give the salam to one another."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 2995