It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever commits sins among a people of whom he is one, and they do not stop him from it until they change the evil, then the protection of Allah is removed from them."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7736