The Prophet (ﷺ) commanded us to respond to the salutation of the imam. and to love each other, and to salute each other.
Sunan Abi Dawud Book 2, Hadith 612