At-Tawbah 9:62
يَحْلِفُونَ بِٱللَّهِ لَكُمْ لِيُرْضُوكُمْ وَٱللَّهُ وَرَسُولُهُۥٓ أَحَقُّ أَن يُرْضُوهُ إِن كَانُوا۟ مُؤْمِنِينَ
Yahlifoona billahilakum liyurdookum wallahu warasooluhu ahaqquan yurdoohu in kanoo mu/mineen
They swear by Allāh to you [Muslims] to satisfy you. But Allāh and His Messenger are more worthy for them to satisfy, if they were to be believers.
(O believers,) they swear by Allah before you, so that they may please you, whereas Allah, as well as His Messenger, has greater right that they should please Him, if they are (true) believers.