“The Messenger of Allah (ﷺ) commanded us to greet our Imam with Salam, and to greet one another with Salam.”
Sunan Ibn Majah Book 5, Hadith 120