Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "How will you fare in a time soon to come when people will be sifted thoroughly, leaving only the dregs of humanity? Their covenants and trusts will be in disarray, they will differ among themselves and become like this," and he interlaced his fingers.They asked, "What should we do, Messenger of Allah, when that time comes?"He replied, "Hold fast to what you recognize as good, abandon what you know to be wrong, attend to your own private affairs, and leave aside the concerns of the masses."

Azami 14695

Sahih

عن عبد الله بن عمرو

أن رسول الله ﷺ قال: كيف بكم وبزمان يوشك أن يأتي يغربل الناس فيه غربلة، وتبقى حثالة من الناس، قد مرجت عهودهم وأماناتهم، فاختفوا، وكانوا هكذا؟- وشبك بين أصابعه- قالوا: كيف بنا يا رسول الله إذا كان ذلك؟ قال: تأخذون بما تعرفون، وتدعون ما تنكرون، وتقبلون على خاصتكم، وتذرون أمر عوامكم.

الأعظمي 14695صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Hisbah, dawah, and the sermon
Section
Enjoining good and forbidding evil
Numbering
Jami al-Kamil 14695 (2nd edition)
Azami 14695