Sahih Muslim, Book 1, Hadith 281 (Muslim 372)

It is narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said:

Verily the faith would recede to Medina just as the serpent crawls back into its hole.