1 Kings 8:32

you will hear in heaven, and you will act and judge your servants, condemning the impious, and repaying his own way upon his own head, but justifying the just, and rewarding him in accord with his justice

Other versions

King James Version

Then hear thou in heaven, and do, and judge thy servants, condemning the wicked, to bring his way upon his head; and justifying the righteous, to give him according to his righteousness.

English Standard Version

then hear in heaven and act and judge your servants, condemning 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, condemning the guilty and bringing down on his own head what he has done. Declare the innocent not guilty, and so establish his innocence.