Abu Bakr reported,

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 I heard the Messenger of Allah ﷺ say, "When people see a wrongdoer and do not restrain him, Allah is about to send a punishment that engulfs them all."

Tirmidhi 3057

Sahih

حدثنا أحمد بن منيع حدثنا يزيد بن هارون حدثنا إسمعيل بن أبي خالد عن قيس بن أبي حازم

عن أبي بكر الصديق أنه قال

يا أيها الناس إنكم تقرءون هذه الآية {يا أيها الذين آمنوا عليكم أنفسكم لا يضركم من ضل إذا اهتديتم} وإني سمعت رسول الله ﷺ يقول إن الناس إذا رأوا ظالما فلم يأخذوا على يديه أوشك أن يعمهم الله بعقاب منه

الترمذي 3057صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Maidah
Numbering
Darussalam 3057
Tirmidhi 3057