It is narrated from Sayyiduna Ibn Amr, may Allah be pleased with him, that Jews used to come to the Noble Prophet, peace and blessings be upon him, and say "Sam Alaik" (death be upon you). Then they would say in their hearts, "Why does Allah not punish us for what we say?" Upon this, the following verse was revealed: "When they come to you, they greet you in a manner in which Allah has not greeted you."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 7061
Hadith Gradingحکم دارالسلام:حديث صحيح لغيره، وهذا إسناد حسن .