Ephesians 4:26

Amplified Bible (AMP)
Be angry [at sin—at immorality, at injustice, at ungodly behavior], yet do not sin; do not let your anger [cause you shame, nor allow it to] last until the sun goes down.

Read Ephesians 4:26 in other translations