It was narrated from Abu Bakr as-Siddeeq that he delivered a khutbah and said: 0 people, you recite this verse but you quote it inappropriately: “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` (al-Ma'idah 5:105]. I heard the Messenger of Allah (ﷺ) say: `If the people see evil and do not denounce it, soon Allah will send His punishment upon them ali.”
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، عَنْ إِسْمَاعِيلَ، قَالَ سَمِعْتُ قَيْسَ بْنَ أَبِي حَازِمٍ، يُحَدِّثُ عَنْ أَبِي بَكْرٍ الصِّدِّيقِ، رَضِيَ اللَّهُ عَنْهُ أَنَّهُ خَطَبَ فَقَالَ يَا أَيُّهَا النَّاسُ إِنَّكُمْ تَقْرَءُونَ هَذِهِ الْآيَةَ وَتَضَعُونَهَا عَلَى غَيْرِ مَا وَضَعَهَا اللَّهُ {يَا أَيُّهَا الَّذِينَ آمَنُوا عَلَيْكُمْ أَنْفُسَكُمْ لَا يَضُرُّكُمْ مَنْ ضَلَّ إِذَا اهْتَدَيْتُمْ} سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ إِنَّ النَّاسَ إِذَا رَأَوْا الْمُنْكَرَ بَيْنَهُمْ فَلَمْ يُنْكِرُوهُ يُوشِكُ أَنْ يَعُمَّهُمْ اللَّهُ بِعِقَابِهِ.
sunnah.com