Abu Bakr stood up, praised Allah and extolled Him, then said, "People, you recite this verse, 'You who believe, take care of your own souls. Those who go astray cannot harm you if you are rightly guided' [Maidah 5:105], but we heard the Messenger of Allah ﷺ say, 'When people see wrongdoing and do not change it, Allah is about to encompass them all with His punishment.'"Abu Usama said on another occasion, "I heard the Messenger of Allah ﷺ say."
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن نمير وأبو أسامة عن إسمعيل بن أبي خالد
قام أبو بكر فحمد الله وأثنى عليه ثم قال يا أيها الناس إنكم تقرءون هذه الآية {يا أيها الذين آمنوا عليكم أنفسكم لا يضركم من ضل إذا اهتديتم} وإنا سمعنا رسول الله ﷺ يقول إن الناس إذا رأوا المنكر لا يغيرونه أوشك أن يعمهم الله بعقابه قال أبو أسامة مرة أخرى فإني سمعت رسول الله ﷺ يقول
[Its chain is sahih] Abu Dawud narrated it in al-Malahim, Chapter on Commanding and Forbidding, 4:338, from the hadith of Ismail as such. Tirmidhi said in hadith 2168, sahih, and Ibn Hibban graded it sahih.Ismail explicitly stated hearing it directly, as recorded by Ahmad, 1:5, and others.