Another interpretation of (Ecclesiastes 3:16) "the place of justice": The Holy One, blessed be He, said: I created the soul, and it is given into My hand, [as it is said] (Job 12:10) "In whose hand is the soul of every living thing." And justice too is given into My hand, as it is said (Deuteronomy 32:41) "and My hand lays hold on justice." And I did not place the soul beside the judgment except that it should see what is prepared for it and not sin; yet it sins. (Ecclesiastes 3:16) "there was wickedness" — because the soul is placed at the side of the judgment.
The Soul Set Beside Judgment in God's Own Hand
Midrash Tanchuma Buber, Vayikra 9:2
ד"א מקום המשפט. אמר הקב"ה בראתי את הנפש והיא נתונה ביד, [שנאמר] אשר בידו נפש כל חי (איוב יב י), ואף המשפט נתון בידי, שנאמר ותאחז במשפט ידי (דברים לב מא), ולא נתתי את הנפש אצל הדין, אלא שתהא רואה מה מתוקן לה ולא תחטא, והיא חוטאה, שמה הרשע, כי הנפש נתונה בצד הדין.