[Machine] I heard Anas say that a man from the people of the Book came and greeted the Prophet ﷺ . He said "As-Salamu Alaykum" (peace be upon you), and Umar said, "O Messenger of Allah, should I not strike his neck?" The Prophet ﷺ said, "No, if they greet you with peace, then say 'wa 'alaykum" (and peace be upon you too).
سَمِعْتُ أَنَسًا يَقُولُ جَاءَ رَجُلٌ مِنْ أَهْلِ الْكِتَابِ فَسَلَّمَ عَلَى النَّبِيِّ ﷺ فَقَالَ السَّامُ عَلَيْكُمْ فَقَالَ عُمَرُ يَا رَسُولَ اللهِ أَلَا أَضْرِبُ عُنُقَهُ؟ قَالَ لَا إِذَا سَلَّمُوا عَلَيْكُمْ فَقُولُوا وَعَلَيْكُمْ