Surah At-Tawba

9:56

وَيَحْلِفُونَ بِٱللَّهِ إِنَّهُمْ لَمِنكُمْ وَمَا هُم مِّنكُمْ وَلَٰكِنَّهُمْ قَوْمٌۭ يَفْرَقُونَ

And they swear by Allah that they are from among you while they are not from among you; but they are a people who are afraid.

Tafsir 9:56

The hypocrites swear to the believers, lying to them, that they are with them, when they are secretly not, although they make it look as if they were. But they are a scared people, cowards in fighting, and fear that what happened to the idolaters who were killed and captured will happen to them, so they pretend to be Muslim.