Sahih Muslim, Book 15, Hadith 553 (Muslim 3318)

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).