Maliks Muwatta Book 45, Hadith Number 8.

Section : Residing in Madina and Leaving It.

Yahya related to me from Malik from Ibn Himas from his paternal uncle from Abu Hurayra that the Messenger of Allah, may Allah bless him and grant him peace, said, “Madina will be left in the best way that it is until a dog or wolf enters it and urinates on one of the pillars of the mosque or on the mimbar.” They asked, “Messenger of Allah! Who will have the fruit at that time?” He replied, “Animals seeking food, birds and wild beasts.”