وَلِيَعْلَمَ ٱلَّذِينَ نَافَقُوا۟ ۚ وَقِيلَ لَهُمْ تَعَالَوْا۟ قَٰتِلُوا۟ فِى سَبِيلِ ٱللَّهِ أَوِ ٱدْفَعُوا۟ ۖ قَالُوا۟ لَوْ نَعْلَمُ قِتَالًۭا لَّٱتَّبَعْنَٰكُمْ ۗ هُمْ لِلْكُفْرِ يَوْمَئِذٍ أَقْرَبُ مِنْهُمْ لِلْإِيمَٰنِ ۚ يَقُولُونَ بِأَفْوَٰهِهِم مَّا لَيْسَ فِى قُلُوبِهِمْ ۗ وَٱللَّهُ أَعْلَمُ بِمَا يَكْتُمُونَ١٦٧
and in order to make known those who are hypocrites. They were told, “Come forward, fight in the way of Allah or at least defend.” They said, “If we had known there was fighting, we would have certainly followed you.” That day they were nearer to disbelief than to faith, saying with their mouths what was not in their hearts, but Allah is All-Knowing of what they conceal.
[ ↗ Study from physical print edition ]And that He might make evident those who are hypocrites. For it was said to them, "Come, fight in the way of Allah or [at least] defend." They said, "If we had known [there would be] fighting, we would have followed you." They were nearer to disbelief that day than to faith, saying with their mouths what was not in their hearts. And Allah is most Knowing of what they conceal -
[ ↗ Study from physical print edition ]167. And He did this in order to demonstrate who the hypocrites were! When they were told to fight in Allah’s path, or to defend their womenfolk and their people, they said, ‘Had we known that you were going to fight properly, then we would have followed you; but you actually throw yourselves to death!’ At that moment, they were closer to showing their disbelief than their faith, saying with their tongues what was not in their hearts. Allah knows best what they hide in their breasts, and will repay them accordingly.
And that He might also know the hypocrites and those who when it was said to them after they had fled the fighting namely ‘Abd Allāh b. Ubayy and his companions ‘Come now fight in the way of God His enemies or defend’ us against the enemy by increasing the multitude of our fighters if you are not going to fight; they said ‘If we knew how if we were skilled enough to fight we would follow you’. God then said showing them to be liars They that day were nearer to unbelief than to belief for what they manifested of their forsaking the believers whereas before they had been outwardly nearer to belief; saying with their mouths that which was not in their hearts for even if they had known how to fight they would not have followed you. And God knows best what they hide of hypocrisy.
Immediately later, in verse 166, the words fa bi idhnillahi: فَبِإِذْنِ اللَّـه indicate that whatever happened there was with the leave and will of Allah Almighty operating behind which are many wise divine arrangements, some of them having been explained earlier. One such wise arrangement is that Allah will 'see' His true believers, and the hypocrites too, that is, the sincerity of Muslims and the hypocrisy of the hypocrites will become so clear that everybody could see it for himself. Here, the reference to Allah's knowing or seeing means seeing in the perspective of our own sense-experience in the mortal world. Otherwise, as far as Allah is concerned, He knows and sees everything, all the time. So, the wise arrangement became all the more clear when, at the time of the trial, the hypocrites bowed out of the harm's way while true Muslims stood undaunted' in the middle of the battle front.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)يَعْنِي يَوْمَ أُحُدٍ مِنَ الْقَتْلِ وَالْجَرْحِ وَالْهَزِيمَةِ. (فَبِإِذْنِ اللَّهِ) أَيْ بِعِلْمِهِ. وَقِيلَ: بِقَضَائِهِ وَقَدَرِهُ. قَالَ الْقَفَّالُ: أَيْ فَبِتَخْلِيَتِهِ بَيْنَكُمْ وَبَيْنَهُمْ، لَا أَنَّهُ أَرَادَ ذَلِكَ. وَهَذَا تَأْوِيلُ الْمُعْتَزِلَةِ. وَدَخَلَتِ الْفَاءُ فِي "فَبِإِذْنِ اللَّهِ" لِأَنَّ "مَا" بِمَعْنَى الَّذِي أَيْ وَالَّذِي أَصَابَكُمْ يَوْمَ الْتَقَى الْجَمْعَانِ فَبِإِذْنِ اللَّهِ، فَأَشْبَهَ الْكَلَامُ مَعْنَى الشَّرْطَ، كَمَا قال سيبويه: الذي قام فله درهم. (وَلِيَعْلَمَ الْمُؤْمِنِينَ وَلِيَعْلَمَ الَّذِينَ نافَقُوا) أَيْ لِيَمِيزَ. وَقِيلَ لِيَرَى. وَقِيلَ: لِيَظْهَرَ إِيمَانُ الْمُؤْمِنِينَ بِثُبُوتِهِمْ فِي الْقِتَالِ، وَلِيَظْهَرَ كُفْرُ الْمُنَافِقِينَ بِإِظْهَارِهِمُ الشَّمَاتَةَ فَيَعْلَمُونَ ذَلِكَ. وَالْإِشَارَةُ بِقَوْلِهِ نافَقُوا وَقِيلَ لَهُمْ هِيَ إِلَى عَبْدِ اللَّهِ بْنِ أُبَيٍّ وَأَصْحَابِهِ الَّذِينَ انْصَرَفُوا مَعَهُ عَنْ نُصْرَةِ النَّبِيِّ ﷺ، وَكَانُوا ثَلَاثَمِائَةٍ. فَمَشَى فِي أَثَرِهِمْ عَبْدُ اللَّهِ بْنُ عَمْرِو بْنِ حَرَامٍ الأنصاري، أبو جابر ابن عَبْدِ اللَّهِ، فَقَالَ لَهُمُ: اتَّقُوا اللَّهَ وَلَا تَتْرُكُوا نَبِيَّكُمْ، وَقَاتِلُوا فِي سَبِيلِ اللَّهِ أَوِ ادْفَعُوا، وَنَحْوَ هَذَا مِنَ الْقَوْلِ. فَقَالَ لَهُ ابْنُ أُبَيٍّ: مَا أَرَى أَنْ يَكُونَ قِتَالٌ، وَلَوْ عَلِمْنَا أَنْ يَكُونَ قِتَالٌ لَكُنَّا مَعَكُمْ. فَلَمَّا يَئِسَ مِنْهُمْ عَبْدُ اللَّهِ قَالَ: اذْهَبُوا أَعْدَاءَ اللَّهِ فَسَيُغْنِي اللَّهُ رَسُولَهُ عَنْكُمْ. وَمَضَى مَعَ النَّبِيِّ ﷺ وَاسْتُشْهِدَ رَحِمَهُ اللَّهُ تَعَالَى. واخْتَلَفَ النَّاسُ فِي مَعْنَى قَوْلِهِ: (أَوِ ادْفَعُوا) فَقَالَ السُّدِّيُّ وَابْنُ جُرَيْجٍ وَغَيْرُهُمَا: كَثِّرُوا سَوَادَنَا وَإِنْ لَمْ تُقَاتِلُوا مَعَنَا، فَيَكُونُ ذَلِكَ دَفْعًا وَقَمْعًا لِلْعَدُوِّ، فَإِنَّ السَّوَادَ إِذَا كَثُرَ حَصَلَ دَفْعُ الْعَدُوِّ. وَقَالَ أَنَسُ بْنُ مَالِكٍ: رَأَيْتُ يَوْمَ الْقَادِسِيَّةِ عَبْدَ اللَّهِ بْنَ أُمِّ مَكْتُومٍ الْأَعْمَى وَعَلَيْهِ دِرْعٌ يَجُرُّ أَطْرَافهَا، وَبِيَدِهِ رَايَةٌ سَوْدَاءُ، فَقِيلَ لَهُ [[في ز: فقلت له.]]: [أَلَيْسَ] [[الزيادة من ابن عطية.]] قَدْ أَنْزَلَ اللَّهُ عُذْرَكَ؟ قَالَ: بَلَى! وَلَكِنِّي أُكَثِّرُ [سَوَادَ] [[الزيادة من ابن عطية.]] الْمُسْلِمِينَ بِنَفْسِي. وَرُوِيَ عَنْهُ أَنَّهُ قَالَ: فَكَيْفَ بِسَوَادِي فِي سَبِيلِ اللَّهِ! وَقَالَ أَبُو عَوْنٍ الْأَنْصَارِيُّ: مَعْنَى "أَوِ ادْفَعُوا" رَابِطُوا. وَهَذَا قَرِيبٌ مِنَ الْأَوَّلِ. وَلَا مَحَالَةَ أَنَّ الْمُرَابِطَ مُدَافِعٌ، لِأَنَّهُ لَوْلَا مَكَانُ الْمُرَابِطِينَ فِي الثُّغُورِ لَجَاءَهَا الْعَدُوُّ. وَذَهَبَ قَوْمٌ مِنَ الْمُفَسِّرِينَ إِلَى أَنَّ قَوْلَ عَبْدِ اللَّهِ بْنِ عَمْرٍو "أَوِ ادْفَعُوا" إِنَّمَا هُوَ اسْتِدْعَاءٌ إِلَى الْقِتَالِ [حَمِيَّةً، لِأَنَّهُ اسْتَدْعَاهُمْ إِلَى الْقِتَالِ] [[الزيادة من ب ود وج.]] فِي سَبِيلِ اللَّهِ، وَهِيَ أَنْ تَكُونَ كَلِمَةُ اللَّهِ هِيَ الْعُلْيَا، فَلَمَّا رَأَى أَنَّهُمْ لَيْسُوا عَلَى ذَلِكَ عَرَضَ عَلَيْهِمُ الْوَجْهَ الَّذِي يَحْشِمُهُمْ وَيَبْعَثُ الْأَنَفَةَ أَيْ أَوْ قَاتِلُوا دِفَاعًا عَنِ الْحَوْزَةِ. أَلَا تَرَى أَنَّ قُزْمَانَ [[هو قزمان بن الحارث العبسي المنافق الَّذِي قَالَ فِيهِ رَسُولُ اللَّهِ ﷺ: (أن الله ليؤيد هذا الدين بالرجل الفاجر).]] قَالَ: وَاللَّهِ مَا قَاتَلْتُ إِلَّا عَنْ أَحْسَابِ قَوْمِي. وَأَلَا تَرَى أَنَّ بعض الأنصار قَالَ يَوْمَ أُحُدٍ لَمَّا رَأَى قُرَيْشًا قَدْ أَرْسَلَتِ الظَّهْرَ [[الظهر: الركاب التي تحمل الأثقال في السفر، لحملها إياها على ظهورها.]] فِي زُرُوعِ قَنَاةٍ [[قناة: واد بالمدينة، وهى أحد أوديتها الثلاثة، عليه حرث ومال. قال المدائني: وقناة يأتي من الطائف ويصيب في الارحضية وقرقرة الكدر، ثم يأتي بئر معونة، ثم يمر على طرف القدوم في أصل قبور الشهداء بأحد. (عن معجم البلدان).]]، أَتُرْعَى زُرُوعُ بَنِي قَيْلَةَ [[قيلة: أم الأوس والخزرج، هي قيلة بنت كاهل بن عذرة، قضاعية. ويقال: بنت جفنة، غسانية. (عن شرح القاموس).]] وَلَمَّا نُضَارِبْ؟ وَالْمَعْنَى إِنْ لَمْ تُقَاتِلُوا فِي سَبِيلِ اللَّهِ فَقَاتِلُوا دَفْعًا عَنْ أَنْفُسِكُمْ وَحَرِيمِكُمْ. قَوْلُهُ تَعَالَى: ﴿هُمْ لِلْكُفْرِ يَوْمَئِذٍ أَقْرَبُ مِنْهُمْ لِلْإِيمانِ﴾ أَيْ بَيَّنُوا حَالَهُمْ، وَهَتَكُوا أَسْتَارَهُمْ، وَكَشَفُوا عَنْ نِفَاقِهِمْ لِمَنْ كَانَ يَظُنُّ أَنَّهُمْ مُسْلِمُونَ، فَصَارُوا أَقْرَبَ إِلَى الْكُفْرِ فِي ظَاهِرِ الْحَالِ، وَإِنْ كَانُوا كَافِرِينَ عَلَى التَّحْقِيقِ. وَقَوْلُهُ تَعَالَى: ﴿يَقُولُونَ بِأَفْواهِهِمْ مَا لَيْسَ فِي قُلُوبِهِمْ﴾ أَيْ أَظْهَرُوا الْإِيمَانَ، وَأَضْمَرُوا الْكُفْرَ. وَذِكْرُ الأفواه تأكيد، مثل قوله: ﴿يَطِيرُ بِجَناحَيْهِ﴾ [الانعام: ٣٨] [[راجع ج ٦ ص ٤١٩.]].