Umm Salama, the wife of the Prophet ﷺ, asked, "Messenger of Allah, will we be destroyed while there are righteous people among us?"The Messenger of Allah ﷺ replied, "Yes, when corruption becomes widespread."
أن أم سلمة زوج النبي ﷺ قالت: يا رسول الله، أنهلك وفينا الصالحون؟ فقال رسول الله ﷺ نعم، إذا كثر الخبث