Sahih al-Bukhari, Book 56, Hadith 148 (In-Book)

Narrated `Aisha: Once the Jews came to the Prophet and said, "Death be upon you." So I cursed them. The Prophet said, "What is the matter?" I said, "Have you not heard what they said?" The Prophet said, "Have you not heard what I replied (to them)? (I said), ('The same is upon you.')"

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

sunnah.com