Yahya related to me from Malik from Abdullah ibn Dinar that Abdullah ibn Umar said that the Messenger of Allah ﷺ said, "When a jew greets you, and says 'Death to you' (as-samu alaykum) say, 'And to you.' " Yahya said, "Malik was asked whether a person who greeted a jew or christian, should apologise for it. He said, 'No'."
أَنَّهُ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ إِنَّ الْيَهُودَ إِذَا سَلَّمَ عَلَيْكُمْ أَحَدُهُمْ فَإِنَّمَا يَقُولُ السَّامُ عَلَيْكُمْ فَقُلْ عَلَيْكَ۔ وسُئِلَ مالِكٌ عَمَّنْ سَلَّمَ عَلى اليَهُودِيِّ أوِ النَّصْرانِيِّ هَلْ يَسْتَقِيلُهُ ذلِكَ؟ فَقالَ: لاَ