English translation
6926. Narrated Anas bin Mālik رضي الله عنه: A Jew passed by Allāh's Messenger ﷺ and said, "As-Sāmu 'Alaika." Allāh's Messenger ﷺ said in reply, "Wa 'Alaika." Allāh's Messenger ﷺ then said to his Companions, "Do you know what he (the Jew) has said? He said, 'As-Sāmu 'Alaika.'" They said, "O Allāh's Messenger! Shall we kill him?" The Prophet ﷺ said, "No. When the people of the Book greet you, say: 'Wa 'Alaikum.'"(1)
