(86) باب التَّرْغِيبِ فِي سُكْنَى الْمَدِينَةِ وَالصَّبْرِ عَلَى لأْوَائِهَا
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 1377 b
In-book reference: Book 15, Hadith 549
USC-MSA web (English) reference(deprecated numbering scheme): Book 7, Hadith 3181