2 Chronicles 6:23

you will hear him from heaven, and you will execute justice for your servants, so that you return, to the iniquitous man, his own way upon his own head, and so that you vindicate the just man, repaying him according to his own justice

Other versions

King James Version

Then hear thou from heaven, and do, and judge thy servants, by requiting the wicked, by recompensing his way upon his own head; and by justifying the righteous, by giving him according to his righteousness.

English Standard Version

then hear from heaven and act and judge your servants, repaying the guilty by bringing his conduct on his own head, and vindicating the righteous by rewarding him according to his righteousness.

New International Version

then hear from heaven and act. Judge between your servants, repaying the guilty by bringing down on his own head what he has done. Declare the innocent not guilty and so establish his innocence.