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)
عَنْ رَسُولِ اللهِ ﷺ أَنَّهُ قَالَ إِنَّ إِبْرَاهِيمَ حَرَّمَ مَكَّةَ وَدَعَا لَهَا وَحَرَّمْتُ الْمَدِينَةَ كَمَا حَرَّمَ إِبْرَاهِيمُ مَكَّةَ وَدَعَوْتُ لَهَا فِي مُدِّهَا وَصَاعِهَا مِثْلَ مَا دَعَا إِبْرَاهِيمُ لِمَكَّةَ