“Abu Bakr stood up and praised and glorified Allah, then he said: ‘O people, you recite this Verse – “O you who believe! Take care of your own selves. If you follow the (right) guidance no hurt can come to you from those who are in error.” – but I heard the Messenger of Allah (ﷺ) say: ‘If people see some evil but do not change it, soon Allah will send His punishment upon them all.’” (One of the narrators) Abu Usamah repeated: "Indeed I heard that Messenger of Allah (ﷺ) say."
Sunan Ibn Majah Book 36, Hadith 80