Zayd bin Thabit reported,

When the Prophet ﷺ set out for Uhud, some of his companions turned back. One group said, "Let us kill them," while another group said, "We should not kill them." Then the verse was revealed, "What is the matter with you that you are divided into two groups concerning the hypocrites" [Nisa 4:88].The Prophet ﷺ said, "It (Madinah) drives out Some men just as fire drives out the impurities of iron."

Bukhari 1884

Sahih

حدثنا سليمان بن حرب حدثنا شعبة عن عدي بن ثابت عن عبد الله بن يزيد قال سمعت

زيد بن ثابت رضي الله عنه يقول ل

ما خرج النبي ﷺ إلى أحد رجع ناس من أصحابه فقالت فرقة نقتلهم وقالت فرقة لا نقتلهم فنزلت {فما لكم في المنافقين فئتين} وقال النبي ﷺ إنها تنفي الرجال كما تنفي النار خبث الحديد

البخاري 1884صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of Madinah
Chapter
Madinah expels impurity
Numbering
Darussalam 1884
Bukhari 1884