كتاب الحج
15  
The Book of Pilgrimage
(89)
Chapter: The prohibition of wishing ill towards the people of Al-Madinah, and that the one who wishes them ill will be caused to melt by Allah
(89)
باب مَنْ أَرَادَ أَهْلَ الْمَدِينَةِ بِسُوءٍ أَذَابَهُ اللَّهُ ‏‏
Sahih Muslim 1386 a

Abu Huraira (Allah be pleased with him) reported that Abul-Qasim (Muhammad, may peace be upon him) said:

He who intends to do harm to the people of this city (that is, Medina), Allah would efface him as salt is dissolved in water.
حَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، وَإِبْرَاهِيمُ بْنُ دِينَارٍ، قَالاَ حَدَّثَنَا حَجَّاجُ بْنُ مُحَمَّدٍ، ح وَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، كِلاَهُمَا عَنِ ابْنِ جُرَيْجٍ، أَخْبَرَنِي عَبْدُ اللَّهِ بْنُ عَبْدِ الرَّحْمَنِ، بْنِ يُحَنِّسَ عَنْ أَبِي عَبْدِ اللَّهِ الْقَرَّاظِ، أَنَّهُ قَالَ أَشْهَدُ عَلَى أَبِي هُرَيْرَةَ أَنَّهُ قَالَ قَالَ أَبُو الْقَاسِمِ صلى الله عليه وسلم ‏ "‏ مَنْ أَرَادَ أَهْلَ هَذِهِ الْبَلْدَةِ بِسُوءٍ - يَعْنِي الْمَدِينَةَ - أَذَابَهُ اللَّهُ كَمَا يَذُوبُ الْمِلْحُ فِي الْمَاءِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1386a
In-book reference : Book 15, Hadith 562
USC-MSA web (English) reference : Book 7, Hadith 3194
  (deprecated numbering scheme)