When justice is done, it brings joy to the righteous but terror to evildoers. (NIV)
When justice is done, it is a joy to the righteous (the upright, in right standing with God), but to the evildoers it is dismay, calamity, and ruin. (AMP)
It is joy to the just to do judgment: but destruction shall be to the workers of iniquity. (KJV)