[Machine] The Messenger of Allah ﷺ sent a small group, led by Ma'qad ibn al-Aswad, on a mission. When they reached the people, they found that they had already scattered, with only one man remaining who had a lot of wealth and had not left. Ma'qad leaned towards him and killed him. One of his companions asked him why he killed a man who had testified that there is no god but Allah, and he said that he would be mentioned to the Prophet ﷺ . When they arrived to the Prophet ﷺ , they said, "O Messenger of Allah, a man testified that there is no god but Allah, and Ma'qad killed him." The Prophet ﷺ said, "Summon Ma'qad for me." When Ma'qad came, the Prophet ﷺ asked him, "O Ma'qad, you killed a man who testified that there is no god but Allah, so how do you judge someone who testifies that there is no god but Allah?" Allah then revealed the following verse: "O you who have believed, when you encounter a company [from the enemy forces], stand firm and remember Allah much that you may be successful. And do not say to one who gives you [a greeting of] peace, 'You are not a believer,' aspiring for the goods of worldly life; for with Allah are many acquisitions. You [yourselves] were like that before; then Allah conferred His favor upon you." The Messenger of Allah ﷺ said, "There was a believer who kept his belief hidden among a group of disbelievers, and you killed him. It was the same for you when you kept your belief hidden in Mecca."
بَعَثَ رَسُولُ اللهِ ﷺ سَرِيَّةً فِيهَا الْمِقْدَادُ بْنُ الْأَسْوَدِ فَلَمَّا أَتَوُا الْقَوْمَ وَجَدُوهُمْ قَدْ تَفَرَّقُوا وَبَقِيَ رَجُلٌ لَهُ مَالٌ كَثِيرٌ لَمْ يَبْرَحْ فَقَالَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ فَأَهْوَى إِلَيْهِ الْمِقْدَادُ فَقَتَلَهُ فَقَالَ لَهُ رَجُلٌ مِنْ أَصْحَابِهِ قَتَلْتَ رَجُلًا قَالَ لَا إِلَهَ إِلَّا اللهُ وَاللهِ لَيُذْكَرَنَّ ذَلِكَ لِلنَّبِيِّ ﷺ فَلَمَّا قَدِمُوا عَلَى النَّبِيِّ ﷺ قَالُوا يَا رَسُولَ اللهِ إِنَّ رَجُلًا شَهِدَ أَنْ لَا إِلَهَ إِلَّا اللهُ فَقَتَلَهُ الْمِقْدَادُ فَقَالَ ادْعُوا لِي الْمِقْدَادَ فَقَالَ يَا مِقْدَادُ قَتَلْتَ رَجُلًا قَالَ لَا إِلَهَ إِلَّا اللهُ فَكَيْفَ لَكَ بِلَا إِلَهَ إِلَّا اللهُ؟ قَالَ فَأَنْزَلَ اللهُ {يَا أَيُّهَا الَّذِينَ آمَنُوا إِذَا ضَرَبْتُمْ فِي سَبِيلِ اللهِ فَتَبَيَّنُوا وَلَا تَقُولُوا لِمَنْ أَلْقَى إِلَيْكُمُ السَّلَامَ لَسْتَ مُؤْمِنًا تَبْتَغُونَ عَرَضَ الْحَيَاةِ الدُّنْيَا فَعِنْدَ اللهِ مَغَانِمُ كَثِيرَةٌ كَذَلِكَ كُنْتُمْ مِنْ قَبْلُ فَمَنَّ اللهُ عَلَيْكُمْ} فَقَالَ رَسُولُ اللهِ ﷺ «كَانَ رَجُلًا مُؤْمِنًا يُخْفِي إِيمَانَهُ مَعَ قَوْمٍ كُفَّارٍ فَقَتَلْتَهُ وَكَذَلِكَ كُنْتَ أَنْتَ تُخْفِي إِيمَانَكَ بِمَكَّةَ»