Salim Sablan reported,

He came to Abu Saeed Khudri during the nights of the Harrah and consulted him about leaving Madinah, complaining to him of its high prices and his large family. He told him that he could not bear the hardship and difficult life of Madinah.Abu Saeed said to him, "Woe to you, I will not advise you to do that. I heard the Messenger of Allah ﷺ say, 'No one endures the hardships of Madinah and dies there without my being an intercessor or witness for him on the Day of Resurrection, provided he was a Muslim.'"

Muslim 3339

Sahih

و حدثنا قتيبة بن سعيد حدثنا ليث عن سعيد بن أبي سعيد

عن أبي سعيد مولى المهري

أنه جاء أبا سعيد الخدري ليالي الحرة فاستشاره في الجلاء من المدينة وشكا إليه أسعارها وكثرة عياله وأخبره أن لا صبر له على جهد المدينة ولأوائها فقال له ويحك لا آمرك بذلك إني سمعت رسول الله ﷺ يقول لا يصبر أحد على لأوائها فيموت إلا كنت له شفيعا أو شهيدا يوم القيامة إذا كان مسلما

مسلم 3339صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Encouragement to reside in Madinah and have patience with its hardships
Numbering
Darussalam 3339
Muslim 3339