James 4:15-17

Instead you ought to say, “If the Lord wills, we will live and do this or that.” 16 As it is, you boast in your arrogance. All such boasting is evil. So whoever knows the right thing to do and fails to do it, for him it is sin. (ESV)