Malik related to me from Hisham ibn Urwah from his father that the Messenger of Allah {Peace and Blessings of Allah be upon him} said:
“No one leaves Madinah preferring to live elsewhere, but that Allah will give it better than him in place of him.”
وَحَدَّثَنِي مَالِكٌ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ” لاَ يَخْرُجُ أَحَدٌ مِنَ الْمَدِينَةِ رَغْبَةً عَنْهَا إِلاَّ أَبْدَلَهَا اللَّهُ خَيْرًا مِنْهُ ” .
{Muwatta ~ Book 45 ~ Hadith 1606}