The Messenger of Allah ﷺ set out for Uhud, but some of the men who had gone out with him turned back. The companions of the Messenger of Allah ﷺ became divided into two groups about them. One group said they should be killed, and the other said they should not. So Allah revealed, "What is the matter with you that you are divided into two groups concerning the hypocrites?" [Nisa 4:88].The Messenger of Allah ﷺ said, "It is Taybah, and it expels impurity just as fire expels the dross of silver."
حدثنا بهز حدثنا شعبة قال عدي بن ثابت أخبرني عبد الله بن يزيد
أن رسول الله ﷺ خرج إلى أحد فرجع أناس خرجوا معه فكان أصحاب رسول الله ﷺ فرقتين فرقة تقول بقتلتهم وفرقة تقول لا فأنزل الله عز وجل {فما لكم في المنافقين فئتين} فقال رسول الله ﷺ إنها طيبة وإنها تنفي الخبث كما تنفي النار خبث الفضة
Its chain of transmission is sahih. Adi bin Thabit is a trustworthy successor, and his hadith is found in the Six Books. Abdullah bin Yazid is Ibn Zayd bin Husayn al-Awsi al-Ansari, an early companion. The hadith has already appeared many times with a different account. See 15070 and 14875 and their cross-references.