Al-Adab Al-Mufrad, Book 44, Hadith 1105 (English)

Anas said, "A Jew passed by the Prophet, may Allah bless him and grant him peace, saying, 'Peace be upon you.' His Companions returned the salam.' The Prophet said, 'The Jew said, 'Poison (sam) be upon you.' He caught hold of the Jew who admitted it.' The Prophet said, 'Answer him with what he said.'"

حَدَّثَنَا عَمْرُو بْنُ عَاصِمٍ، قَالَ‏:‏ حَدَّثَنَا هَمَّامٌ، قَالَ‏:‏ حَدَّثَنَا قَتَادَةُ، عَنْ أَنَسٍ قَالَ‏:‏ مَرَّ يَهُودِيٌّ عَلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ‏:‏ السَّامُ عَلَيْكُمْ، فَرَدَّ أَصْحَابُهُ السَّلاَمَ، فَقَالَ‏:‏ قَالَ‏:‏ السَّامُ عَلَيْكُمْ، فَأُخِذَ الْيَهُودِيُّ فَاعْتَرَفَ، قَالَ‏:‏ رُدُّوا عَلَيْهِ مَا قَالَ‏.‏

sunnah.com