The Messenger of Allah ﷺ said, "Madinah is better for them, if only they knew. No one leaves it out of dislike for it without Allah replacing him in it with someone better. And no one endures its hardship and difficulty without my being an intercessor or a witness for him on the Day of Resurrection."
قال رسول الله ﷺ: المدينة خير لهم لو كانوا يعلمون لا يدعها أحد رغبة عنها إلا أبدل الله فيها من هو خير منه، ولا يثبت أحد على لأوائها وجهدها إلا كنت له شفيعا، أو شهيدا يوم القيامة.
Muslim narrated it in the book of Hajj (1363) through the route of Uthman bin Hakeem, who said, Amir bin Saad narrated to me, from his father (Saad bin Abu Waqqas), who said (then he mentioned the hadith).