Sahih al-Bukhari 2129
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَنَّ إِبْرَاهِيمَ حَرَّمَ مَكَّةَ، وَدَعَا لَهَا، وَحَرَّمْتُ الْمَدِينَةَ كَمَا حَرَّمَ إِبْرَاهِيمُ مَكَّةَ، وَدَعَوْتُ لَهَا فِي مُدِّهَا وَصَاعِهَا، مِثْلَ مَا دَعَا إِبْرَاهِيمُ ـ عَلَيْهِ السَّلاَمُ ـ لِمَكَّةَ "
Narrated `Abdullah bin Zaid:
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.
Full reference and source
Sahih al-Bukhari 2129 In-book : Book 34, Hadith 81 USC-MSA web (English) : Vol. 3, Book 34, Hadith 339 (deprecated)
View source on Sunnah.com (opens in a new tab)