Sahih Muslim Book 7, Hadith Number 3203.

Chapter : When people will abandon Medina.

Abu Huraira (Allah be pleased with him) heard Allah’s Messenger (may peace be upon him) say: They (the residents of) Medina will abandon Medina whereas it is good for them and it will be haunted by beasts and birds, and two shepherds will come out from Muzainah intending (to go) towards Medina and tending their herd, and will find nothing but wilderness there until when they will reach the mountain path of Wada, they will fall down on their faces.