The Messenger of Allah ﷺ said, "Faith retreats to Medina just as a snake retreats to its hole."
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن نمير وأبو أسامة عن عبيد الله بن عمر عن خبيب بن عبد الرحمن عن حفص بن عاصم
قال رسول الله ﷺ إن الإيمان ليأرز إلى المدينة كما تأرز الحية إلى جحرها
Bukhari narrated it in "The Virtues of Madinah," chapter "Faith Withdraws to Madinah," Hadith 1876, from the hadith of Ubaydullah bin Umar, with this chain. Muslim also narrated it in "Faith," chapter "Explaining that Islam Began as Something Strange and Will Return to Being Strange, and That It Withdraws Between the Two Mosques," 147, from Ibn Abu Shayba, with this chain.