Al-Baqarah 2:224
وَلَا تَجْعَلُوا۟ ٱللَّهَ عُرْضَةً لِّأَيْمَـٰنِكُمْ أَن تَبَرُّوا۟ وَتَتَّقُوا۟ وَتُصْلِحُوا۟ بَيْنَ ٱلنَّاسِ ۗ وَٱللَّهُ سَمِيعٌ عَلِيمٌ
Wala tajAAaloo Allaha AAurdatanli-aymanikum an tabarroo watattaqoo watuslihoobayna annasi wallahu sameeAAunAAaleem
And do not make [your oath by] Allāh an excuse against being righteous and fearing Allāh and making peace among people. And Allāh is Hearing and Knowing.
Do not make (the name of) Allah the subject of your oaths against your doing good, fearing Allah and setting things right between people. Allah is All-Hearing, All-Knowing.