كتاب الحج
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 1377 a

Ibn 'Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:

He who patiently endures the hardships of it (of this city of Medina), I would be an intercessor or a withness on his behalf on the Day of Resurrection.
حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا عُثْمَانُ بْنُ عُمَرَ، أَخْبَرَنَا عِيسَى بْنُ حَفْصِ بْنِ عَاصِمٍ، حَدَّثَنَا نَافِعٌ، عَنِ ابْنِ عُمَرَ، قَالَ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ مَنْ صَبَرَ عَلَى لأْوَائِهَا كُنْتُ لَهُ شَفِيعًا أَوْ شَهِيدًا يَوْمَ الْقِيَامَةِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1377a
In-book reference : Book 15, Hadith 548
USC-MSA web (English) reference : Book 7, Hadith 3180
  (deprecated numbering scheme)