[Machine] The Messenger of Allah ﷺ said, "I saw as if I were in a fortified shield (castle), and I saw a slaughtered cow. I interpreted that the fortified shield is the city of Madinah, and the slaughtered cow represents some people. By Allah, they are better off dead." He then said to his companions, "If we establish ourselves in Madinah and they attack us, we will fight them." They replied, "O Messenger of Allah, by Allah, they have not attacked us in the time of Jahiliyyah (pre-Islamic era), so how can they attack us in Islam?" 'Affan mentioned this in his hadith, then the Messenger of Allah ﷺ said, "What is wrong with you?!" Then his people backed him and said, "O Messenger of Allah, why are you upset?" He said, "No prophet wears armor for his people and then removes it until he fights."
أَنَّ رَسُولَ اللهِ ﷺ قَالَ رَأَيْتُ كَأَنِّي فِي دِرْعٍ حَصِينَةٍ وَرَأَيْتُ بَقَرًا مُنَحَّرَةً فَأَوَّلْتُ أَنَّ الدِّرْعَ الْحَصِينَةَ الْمَدِينَةُ وَأَنَّ الْبَقَرَ نَفَرٌ وَاللهِ خَيْرٌ قَالَ فَقَالَ لِأَصْحَابِهِ لَوْ أَنَّا أَقَمْنَا بِالْمَدِينَةِ فَإِنْ دَخَلُوا عَلَيْنَا فِيهَا قَاتَلْنَاهُمْ فَقَالَوا يَا رَسُولَ اللهِ وَاللهِ مَا دُخِلَ عَلَيْنَا فِيهَا فِي الْجَاهِلِيَّةِ فَكَيْفَ يُدْخَلُ عَلَيْنَا فِيهَا فِي الْإِسْلَامِ؟ قَالَ عَفَّانُ فِي حَدِيثِهِ فَقَالَ شَأْنَكُمْ إِذًا قَالَ فَلَبِسَ لَأْمَتَهُ قَالَ فَقَالَتِ الْأَنْصَارُ رَدَدْنَا عَلَى رَسُولِ اللهِ ﷺ رَأْيَهُ فَجَاءُوافَقَالَوا يَا نَبِيَّ اللهِ شَأْنَكَ إِذًا فَقَالَ إِنَّهُ لَيْسَ لِنَبِيٍّ إِذَا لَبِسَ لَأْمَتَهُ أَنْ يَضَعَهَا حَتَّى يُقَاتِلَ