Abu Musa Ashari reported,

The Messenger of Allah ﷺ said, "My example and the example of what Allah has sent me with is like a man who came to a people and said, 'I have seen the army with my own eyes, and I am the naked warner, so flee, flee!' One group obeyed him and slipped away under the cover of night at their ease and were saved, while another group denied him, so the army came upon them in the morning and wiped them out."

Bukhari 6482

Sahih

حدثنا محمد بن العلاء حدثنا أبو أسامة عن بريد بن عبد الله بن أبي بردة عن أبي بردة

عن أبي موسى قال

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

البخاري 6482صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Softening of hearts
Chapter
Refraining from sins
Numbering
Darussalam 6482
Bukhari 6482