The Prophet ﷺ said, "The Prophet ﷺ Abraham made Mecca a sanctuary, and asked for Allah's blessing in it. I made Medina a sanctuary as Abraham made Mecca a sanctuary and I asked for Allah's Blessing in its measures the Mudd and the Sa as Abraham did for Mecca.
عَنِ النَّبِيِّ ﷺ أَنَّ إِبْرَاهِيمَ حَرَّمَ مَكَّةَ وَدَعَا لَهَا وَحَرَّمْتُ الْمَدِينَةَ كَمَا حَرَّمَ إِبْرَاهِيمُ مَكَّةَ وَدَعَوْتُ لَهَا فِي مُدِّهَا وَصَاعِهَا مِثْلَ مَا دَعَا إِبْرَاهِيمُ عَلَيْهِ السَّلاَمُ لِمَكَّةَ