They swear to you so that you might be satisfied with them. But if you should be satisfied with them - indeed, Allāh is not satisfied with a defiantly disobedient people.
2. The third instruction given to the Holy Prophet ﷺ appears in the third verse (96): "They swear before you so that you may be pleased with them." The order of Allah Ta` ala is that their wish was not to be granted and he was not to be pleased with them. However, it was also said that, ` even if you were to be pleased with them, it was not going to work for them in any manner, because Allah is not pleased with them. And how could Allah be pleased with them when they are still adamant about their denial and hypocrisy?
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 96–97
The orders regarding the hypocrites of later periods were the same. However, there was one difference. The treatment given to the hypocrites of the early period was based on the state of their hearts. But the treatment given to the later hypocrites will be based on external proof. The approach of overlooking and ignoring them will be proper only if external proof of their hypocrisy is available. No action will be taken against them on the basis of their intention or the condition of their hearts. If the later hypocrites present any excuses, their excuses and their charities, etc., will also be accepted. Leaving their fate to be decided by God, such action will be taken against them as is warranted in the normal course of law. Paradise is attainable on the basis of personal deeds and not on the basis of having joined any class or group of Muslims. All the hypocrites were a part of the Mulsim ummah; they used to offer prayers and observe the ritual of fasting along with the Muslims, but in spite of that, God decalred them to be bound for Hell.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.