إِنَّمَا يَسْتَـْٔذِنُكَ ٱلَّذِينَ لَا يُؤْمِنُونَ بِٱللَّهِ وَٱلْيَوْمِ ٱلْءَاخِرِ وَٱرْتَابَتْ قُلُوبُهُمْ فَهُمْ فِى رَيْبِهِمْ يَتَرَدَّدُونَ٤٥
Only those who do not believe in Allah and the Last Day ask permission to be exempted; they have doubts in their hearts, so they will continue to waver in their doubts.
[ ↗ Study from physical print edition ]Only those would ask permission of you who do not believe in Allah and the Last Day and whose hearts have doubted, and they, in their doubt, are hesitating.
[ ↗ Study from physical print edition ](Had it been a near adventure and an easy journey they had followed thee)" [9:42-47]. Allah then revealed about those hypocrites who stayed behind and did not take part in the Battle of Tabuk (Had it been a near adventure and an easy journey they had followed thee)". He also revealed (Had they gone forth among you they had added to you naught save trouble)". This is because when the Messenger of Allah, Allah bless him and give him peace, set forth, he camped his troops at al-Wada' "s mountain trail while 'Abd Allah ibn Ubayy camped his troops at a clear trodden path below the mountain trail of al-Wada'. His troops were no less than the troops which were with the Prophet. When the Messenger of Allah, Allah bless him and give him peace, marched again, 'Abd Allah ibn Ubayy, the hypocrites and the doubters stayed behind. To consol His Prophet, Allah bless him and give him peace, Allah, exalted is He, revealed (Had they gone forth among you they had added to you naught save trouble)".
45. Those who ask the Messenger (peace be upon him)for permission to stay behind from striving for the sake of Allah are the hypocrites who do not believe in Allah and the Day of Judgement, and whose hearts are full of doubt about the sacred path of Allah. In their doubt they waver, confused, and they are not guided to the truth.
They alone ask leave of you to stay behind who do not believe in God and the Last Day and whose hearts are doubtful uncertain about religion so in their doubt they waver they are confused.
In the second (44) and third (45) verses given there was the difference between believers and hypocrites. Those who believe in Allah Ta` ala truly and staunchly do not pick an occasion like that only to seek desertion from Jihad just for the sake of love for their lives and wealth and go about asking the permission of their prophet to stay back. In fact, this is the behavior of only those who do not believe in Allah and the Day of Judgment (Akhirah), truly and correctly - and, as for Allah, He knows the God-fearing perfectly well.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)إِنَّمَا يَسْتَأْذِنُكَ الَّذِينَ لَا يُؤْمِنُونَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ وَارْتَابَتْ قُلُوبُهُمْ فَهُمْ فِي رَيْبِهِمْ يَتَرَدَّدُونَ (٤٥) قَوْلُهُ تَعَالَى: ﴿لَا يَسْتَأْذِنُكَ الَّذِينَ يُؤْمِنُونَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ﴾ أَيْ فِي الْقُعُودِ وَلَا فِي الْخُرُوجِ، بَلْ إِذَا أَمَرْتَ بِشَيْءٍ ابْتَدَرُوهُ، فَكَانَ الِاسْتِئْذَانُ فِي ذَلِكَ الْوَقْتِ مِنْ عَلَامَاتِ النِّفَاقِ لِغَيْرِ عُذْر، وَلِذَلِك قَالَ: (إِنَّما يَسْتَأْذِنُكَ الَّذِينَ لَا يُؤْمِنُونَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ وَارْتابَتْ قُلُوبُهُمْ فَهُمْ فِي رَيْبِهِمْ يَتَرَدَّدُونَ). رَوَى أَبُو دَاوُدَ عَنِ ابْنِ عَبَّاسٍ قَالَ: (لَا يَسْتَأْذِنُكَ الَّذِينَ يُؤْمِنُونَ بِاللَّهِ) نَسَخَتْهَا الَّتِي فِي (النُّورِ) (إِنَّمَا الْمُؤْمِنُونَ الَّذِينَ آمَنُوا بِاللَّهِ وَرَسُولِهِ- إِلَى قَوْلِهِ- غَفُورٌ رَحِيمٌ) [[راجع ج ١٢ ص ٣٢٠ فما بعد.]] "أَنْ يُجاهِدُوا" فِي مَوْضِعِ نَصْبٍ بإضمار في، عن الزجاج. وقيل: التقدير كَرَاهِيَةَ أَنْ يُجَاهِدُوا، كَقَوْلِهِ: ﴿يُبَيِّنُ اللَّهُ لَكُمْ أَنْ تَضِلُّوا﴾[[راجع ج ٦ ص ٢٨.]] [النساء: ١٧٦]. (وَارْتابَتْ قُلُوبُهُمْ) شَكَّتْ فِي الدِّينِ. (فَهُمْ فِي رَيْبِهِمْ يَتَرَدَّدُونَ) أَيْ فِي شَكِّهِمْ يَذْهَبُونَ وَيَرْجِعُونَ.