Surah An-Noor

24:53

۞ وَأَقْسَمُوا۟ بِٱللَّهِ جَهْدَ أَيْمَٰنِهِمْ لَئِنْ أَمَرْتَهُمْ لَيَخْرُجُنَّ ۖ قُل لَّا تُقْسِمُوا۟ ۖ طَاعَةٌۭ مَّعْرُوفَةٌ ۚ إِنَّ ٱللَّهَ خَبِيرٌۢ بِمَا تَعْمَلُونَ

And they swear by Allah their strongest oaths that if you ordered them, they would go forth [in Allah 's cause]. Say, "Do not swear. [Such] obedience is known. Indeed, Allah is Acquainted with that which you do."

Tafsir 24:53

The hypocrites take the strongest and far-fetched of oaths possible upon Allah, saying that if you were to command them to march out to jihad, they would indeed do so. O Messenger! Say to them: “Do not take oaths, for your lying is well known, as is your claimed submission. Allah is well-aware of your actions; no action of yours is hidden from Him, regardless of how you try to hide them.