At-Tawbah 9:96
يَحْلِفُونَ لَكُمْ لِتَرْضَوْا۟ عَنْهُمْ ۖ فَإِن تَرْضَوْا۟ عَنْهُمْ فَإِنَّ ٱللَّهَ لَا يَرْضَىٰ عَنِ ٱلْقَوْمِ ٱلْفَـٰسِقِينَ
Yahlifoona lakum litardawAAanhum fa-in tardaw AAanhum fa-inna Allaha layarda AAani alqawmi alfasiqeen
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.
They swear before you, so that you may be pleased with them. So, even if you are pleased with them, Allah will not be pleased with the sinning people.