Proverbs 24:17

Amplified Bible (AMP)

Do not rejoice and gloat when your enemy falls,
And do not let your heart be glad [in self-righteousness] when he stumbles,

Read Proverbs 24:17 in other translations