Hadithcore
Sahih Muslim, 1384
sahih

Zaid b. Thabit reported Allah's Messenger (ﷺ) as saying:

It is Taiba, thereby meaning Medina. It drives away impurity just as fire removes the impurity of silver.

وَحَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، - وَهُوَ الْعَنْبَرِيُّ - حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ عَدِيٍّ، - وَهُوَ ابْنُ ثَابِتٍ - سَمِعَ عَبْدَ اللَّهِ بْنَ يَزِيدَ، عَنْ زَيْدِ بْنِ ثَابِتٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏

‏ إِنَّهَا طَيْبَةُ - يَعْنِي الْمَدِينَةَ - وَإِنَّهَا تَنْفِي الْخَبَثَ كَمَا تَنْفِي النَّارُ خَبَثَ الْفِضَّةِ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 15, Hadith 560
USC-MSA web (English) reference
Book 7, Hadith 3192 (deprecated numbering scheme)