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

Yuhannis, the freed slave of Zubair, narrated that when he was sitting with Abdullah b. 'Umar (Allah be pleased with him) during the days of turmoil, his freed slave-girl came to him. After saluting him she said:

Abu Abd al-Rahmin, I have decided to leave (Medina) for the time is hard for us, whereupon Abdullah said to her: Stay here, foolish lady, for I have heard Allah's Messenger (ﷺ) as saying: For one who shows endurance on the hardships and rigour of it (of Medina) I would be an intercessor or a witness on his behalf on the Day of Resurrection.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ قَطَنِ بْنِ وَهْبِ بْنِ عُوَيْمِرِ بْنِ، الأَجْدَعِ عَنْ يُحَنِّسَ، مَوْلَى الزُّبَيْرِ أَخْبَرَهُ أَنَّهُ، كَانَ جَالِسًا عِنْدَ عَبْدِ اللَّهِ بْنِ عُمَرَ فِي الْفِتْنَةِ فَأَتَتْهُ مَوْلاَةٌ لَهُ تُسَلِّمُ عَلَيْهِ فَقَالَتْ إِنِّي أَرَدْتُ الْخُرُوجَ يَا أَبَا عَبْدِ الرَّحْمَنِ اشْتَدَّ عَلَيْنَا الزَّمَانُ ‏.‏ فَقَالَ لَهَا عَبْدُ اللَّهِ اقْعُدِي لَكَاعِ فَإِنِّي سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ لاَ يَصْبِرُ عَلَى لأْوَائِهَا وَشِدَّتِهَا أَحَدٌ إِلاَّ كُنْتُ لَهُ شَهِيدًا أَوْ شَفِيعًا يَوْمَ الْقِيَامَةِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1377b
In-book reference : Book 15, Hadith 549
USC-MSA web (English) reference : Book 7, Hadith 3181
  (deprecated numbering scheme)