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