كتاب الحج
15  
The Book of Pilgrimage
(86)
Chapter: Encouragement to live in Al-Madinah and to be patient on bearing its distress and hardships
(86)
باب التَّرْغِيبِ فِي سُكْنَى الْمَدِينَةِ وَالصَّبْرِ عَلَى لأْوَائِهَا ‏‏
Sahih Muslim 1378 c

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

None who shows endurance on the hardships of Medina,... (the rest of the hadith is the same).
وَحَدَّثَنَا يُوسُفُ بْنُ عِيسَى، حَدَّثَنَا الْفَضْلُ بْنُ مُوسَى، أَخْبَرَنَا هِشَامُ بْنُ عُرْوَةَ، عَنْ صَالِحِ بْنِ أَبِي صَالِحٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ يَصْبِرُ أَحَدٌ عَلَى لأْوَاءِ الْمَدِينَةِ ‏"‏ ‏.‏ بِمِثْلِهِ ‏.‏
Reference : Sahih Muslim 1378c
In-book reference : Book 15, Hadith 553
USC-MSA web (English) reference : Book 7, Hadith 3185
  (deprecated numbering scheme)