Surah Ali 'Imran 3:167
وَلِيَعْلَمَ ٱلَّذِينَ نَافَقُوا۟ ۚ وَقِيلَ لَهُمْ تَعَالَوْا۟ قَـٰتِلُوا۟ فِى سَبِيلِ ٱللَّهِ أَوِ ٱدْفَعُوا۟ ۖ قَالُوا۟ لَوْ نَعْلَمُ قِتَالًا لَّٱتَّبَعْنَـٰكُمْ ۗ هُمْ لِلْكُفْرِ يَوْمَئِذٍ أَقْرَبُ مِنْهُمْ لِلْإِيمَـٰنِ ۚ يَقُولُونَ بِأَفْوَٰهِهِم مَّا لَيْسَ فِى قُلُوبِهِمْ ۗ وَٱللَّهُ أَعْلَمُ بِمَا يَكْتُمُونَ
And that He might make evident those who are hypocrites. For it was said to them, "Come, fight in the way of Allāh or [at least] defend." They said, "If we had known [there would be] battle, 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 Allāh is most knowing of what they conceal -
Translation: Saheeh International
Tafsir
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; …
Excerpt from Tafsir al-Jalalayn, commentary on 3:167, via Quran.com. The reader has the full commentary and 9 more tafsirs.