Abu Musa Ashari reported,

The Prophet ﷺ said, "My example and the example of what Allah has sent me with is like a man who came to his people and said, 'My people, I have seen the army with my own eyes, and I am the naked warner, so flee to safety!'A group among his people obeyed him and set out at nightfall, traveling at their own pace until they escaped. Another group denied him and remained where they were, so the army came upon them in the morning, destroyed them, and wiped them out.That is the example of one who obeys me and follows what I have brought, and the example of one who disobeys me and denies the truth I have brought."

Muslim 5954

Sahih

حدثنا عبد الله بن براد الأشعري وأبو كريب واللفظ لأبي كريب قالا حدثنا أبو أسامة عن بريد عن أبي بردة

عن أبي موسى

عن النبي ﷺ قال إن مثلي ومثل ما بعثني الله به كمثل رجل أتى قومه فقال يا قوم إني رأيت الجيش بعيني وإني أنا النذير العريان فالنجاء فأطاعه طائفة من قومه فأدلجوا فانطلقوا على مهلتهم وكذبت طائفة منهم فأصبحوا مكانهم فصبحهم الجيش فأهلكهم واجتاحهم فذلك مثل من أطاعني واتبع ما جئت به ومثل من عصاني وكذب ما جئت به من الحق

مسلم 5954صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
His ﷺ compassion for his ummah and his emphasis on warning them against what harms them
Numbering
Darussalam 5954
Muslim 5954