Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:3:167

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 -  

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.
القرآن:٣:١٦٧

وَلِيَعْلَمَ الَّذِينَ نَافَقُوا ۚ وَقِيلَ لَهُمْ تَعَالَوْا قَاتِلُوا فِي سَبِيلِ اللَّهِ أَوِ ادْفَعُوا ۖ قَالُوا لَوْ نَعْلَمُ قِتَالًا لَاتَّبَعْنَاكُمْ ۗ هُمْ لِلْكُفْرِ يَوْمَئِذٍ أَقْرَبُ مِنْهُمْ لِلْإِيمَانِ ۚ يَقُولُونَ بِأَفْوَاهِهِمْ مَا لَيْسَ فِي قُلُوبِهِمْ ۗ وَاللَّهُ أَعْلَمُ بِمَا يَكْتُمُونَ  

{وليعلم الذين نافقوا و} الذين {قيل لهم} لما انصرفوا عن القتال وهم عبد الله بن أبيّ وأصحابه {تعالوا قاتلوا في سبيل الله} أعداءه {أو ادفعوا} عنا القوم بتكثير سوادكم إن لم تقاتلوا {قالوا لو نَعْلَمُ} نحسن {قتالا لاتبعناكم} قال تعالى تكذيبا لهم: {هم للكفر يومئذ أقرب منهم للإيمان} بما أظهروا من خذلانهم للمؤمنين وكانوا قبل أقرب إلى الإيمان من حيث الظاهر {يقولون بأفواهم ما ليس في قلوبهم} ولو علموا قتالا لم يتبعوكم {والله أعلم بما يكتمون} من النفاق.