Ecclesiastes 10:4

New American Standard Bible (NASB)
If the ruler’s [c]temper rises against you, do not abandon your position, because composure allays great offenses.

Read Ecclesiastes 10:4 in other translations