وَحَدَّثَنِي مَالِكٌ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ لاَ يَخْرُجُ أَحَدٌ مِنَ الْمَدِينَةِ رَغْبَةً عَنْهَا إِلاَّ أَبْدَلَهَا اللَّهُ خَيْرًا مِنْهُ ‏"‏ ‏.‏

Malik related to me from Hisham ibn Urwa from his father that theMessenger of Allah, may Allah bless him and grant him peace, said, "Noone leaves Madina preferring to live elsewhere, but that Allah willgive it better than him in place of him ." Translation Not Available

Book Ref: Muwatta Imam Malik Book 45 Hadith 1606
Web Ref:  Muwatta Imam Malik Book 45 Hadith 6