Maliks Muwatta Book 045, Hadith Number 006.

Section : Residing in Madina and Leaving It.

Malik related to me from Hisham ibn Urwa from his father that the Messenger of Allah, may Allah bless him and grant him peace, said, "No one leaves Madina preferring to live elsewhere, but that Allah will give it better than him in place of him."