Mishkat al-Masabih 148
وَعَنْ أَبِي مُوسَى قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّمَا مَثَلِي وَمَثَلُ مَا بَعَثَنِي اللَّهُ بِهِ كَمَثَلِ رَجُلٍ أَتَى قَوْمًا فَقَالَ يَا قَوْمِ إِنِّي رَأَيْتُ الْجَيْشَ بِعَيْنِي وَإِنِّي أَنَا النَّذِيرُ الْعُرْيَانُ فَالنَّجَاءَ النَّجَاءَ فَأَطَاعَهُ طَائِفَةٌ مِنْ قَوْمِهِ فَأَدْلَجُوا فَانْطَلَقُوا عَلَى مَهْلِهِمْ فَنَجَوْا وَكَذَّبَتْ طَائِفَةٌ مِنْهُمْ فَأَصْبَحُوا مَكَانَهُمْ فَصَبَّحَهُمُ الْجَيْشُ فَأَهْلَكَهُمْ وَاجْتَاحَهُمْ فَذَلِكَ مَثَلُ مَنْ أَطَاعَنِي فَاتَّبَعَ مَا جِئْتُ بِهِ وَمثل من عَصَانِي وَكذب بِمَا جِئْتُ بِهِ مِنَ الْحَقِّ»
From Abu Musa, who said: The Messenger of Allah ﷺ said: "The likeness of me and of what Allah has sent me with is that of a man who came to a people and said: 'O my people, I have seen the army with my own eyes, and I am the naked warner, so save yourselves, save yourselves!' A group of his people obeyed him, set out at nightfall and went off at their ease, and were saved. And a group of them disbelieved and stayed in their place until morning, and the army came upon them in the morning, destroyed them and wiped them out. That is the likeness of whoever obeys me and follows what I have brought, and the likeness of whoever disobeys me and denies the truth I have brought."