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. (Using translation from Bukhārī 2129)
عَنِ النَّبِيِّ ﷺ قَالَ إِنَّ إِبْرَاهِيمَ عَلَيْهِ السَّلَامُ حَرَّمَ مَكَّةَ وَإِنِّي حَرَّمْتُ الْمَدِينَةَ كَمَا حَرَّمَ إِبْرَاهِيمُ مَكَّةَ وَدَعَوْتُ لَهَا فِي مُدِّهَا وَصَاعِهَا مِثْلَ مَا دَعَا إِبْرَاهِيمُ عَلَيْهِ السَّلَامُ لِمَكَّةَ