Sure An-Noor

24:53

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

Und sie haben bei Allah ihren kräftigsten Eid geschworen, sie würden, wenn du ihnen befiehlst, ganz gewiß hinausziehen. Sag: Schwört nicht, geziemender Gehorsam (ist gewiß besser). Gewiß, Allah ist Kundig dessen, was ihr tut.

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.