The Light - 24:53
"They swore by Allah with the most solemn of oaths that they would leave if You commanded them. Say, "Do not swear. It is clear how you obey. Allah is aware of everything you do."
The hypocrites invented excuses for not taking part in the war:
The Family Of Imran/3:167
"Thus are the hypocrites exposed. When it was said to them, "Come, fight in the way of Allah or contribute", they said, "If we knew about war, we would have joined you". At that moment they were closer to disbelief than to faith. They say with their mouths what is not in their hearts. But Allah knows very well what they conceal."
The Coalition/33:13
"A group of them were saying, "People of Yathrib, you cannot hold on any longer; go back."The other group of them were asking permission from the Prophet, saying, "Our houses are unprotected,"even though their houses were protected. Their whole purpose was to escape."
The Repentance/9:49
"Some of them say, "Allow me, do not put me in distress". They have already fallen into distress with this attitude; Hell encompasses the disbelievers."
The Repentance/9:81
"Those who remained behind liked their place behind the Messenger of Allah and disliked to strive in the Way of Allah with their money and their lives and said: "Do not move in this heat,"they said. Say, "The fire of hell is hotter."If only they understood!"
The Repentance/9:86
"When a Surah came down saying, "Believe in Allah and strive hard with His Messenger,"even the powerful and wealthy of them asked your permission and said, "Let us go and be with those who sit down."
The Repentance/9:93
Only those who asked you for permission while they were rich are reprehensible. They asked to be with those who stayed behind, and Allah stamped their hearts. Therefore they do not know.