Huzaifa bin Yaman reported,

People used to ask the Messenger of Allah ﷺ about good, but I used to ask him about evil, fearing that it might overtake me.I said, "Messenger of Allah, we were in a state of ignorance and evil, then Allah brought us this good. Is there any evil after this good?"He replied, "Yes."I asked, "And is there any good after that evil?"He said, "Yes, but it will be tainted."I asked, "What will taint it?"He answered, "A people who follow a way other than my way and guide by other than my guidance. You will recognize some of what they do and reject other parts."I asked, "Is there any evil after that good?"He said, "Yes, callers at the gates of Hell. Whoever responds to their call, they will hurl him into it."I said, "Messenger of Allah, describe them to us."He said, "Yes. They will be a people from our own skin and speaking our own tongue."I asked, "Messenger of Allah, what do you advise me to do if I live to see that?"He said, "Stay close to the main body of the Muslims and their leader."I said, "But what if they have no main body and no leader?"He replied, "Then withdraw from all those factions, even if you must bite onto the root of a tree until death overtakes you while you are in that state."

Muslim 4784

Sahih

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

حذيفة بن اليمان يقول

ا كان الناس يسألون رسول الله ﷺ عن الخير وكنت أسأله عن الشر مخافة أن يدركني فقلت يا رسول الله إنا كنا في جاهلية وشر فجاءنا الله بهذا الخير فهل بعد هذا الخير شر قال نعم فقلت هل بعد ذلك الشر من خير قال نعم وفيه دخن قلت وما دخنه قال قوم يستنون بغير سنتي ويهدون بغير هديي تعرف منهم وتنكر فقلت هل بعد ذلك الخير من شر قال نعم دعاة على أبواب جهنم من أجابهم إليها قذفوه فيها فقلت يا رسول الله صفهم لنا قال نعم قوم من جلدتنا ويتكلمون بألسنتنا قلت يا رسول الله فما ترى إن أدركني ذلك قال تلزم جماعة المسلمين وإمامهم فقلت فإن لم تكن لهم جماعة ولا إمام قال فاعتزل تلك الفرق كلها ولو أن تعض على أصل شجرة حتى يدركك الموت وأنت على ذلك

مسلم 4784صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Command to adhere to the community when tribulations appear and warning against callers to disbelief
Numbering
Darussalam 4784
Muslim 4784