James 5:9-12 ESV
Do not grumble against one another, brothers, so that you may not be judged; behold, the Judge is standing at the door. As an example of suffering and patience, brothers, take the prophets who spoke in the name of the Lord. Behold, we consider those blessed who remained steadfast. You have heard of the steadfastness of Job, and you have seen the purpose of the Lord, how the Lord is compassionate and merciful.
But above all, my brothers, do not swear, either by heaven or by earth or by any other oath, but let your “yes” be yes and your “no” be no, so that you may not fall under condemnation.
ESV: English Standard Version 2016