King James Version (KJV)
And all Israel heard of the judgment which the king had judged; and they feared the king: for they saw that the wisdom of God {was} in him, to do judgment. {in him: Heb. in the midst of him}
Modern English
All Israel heard of the judgment which the king had judged; and they feared the king; for they saw that the wisdom of God was in him, to do justice.
Hebrew
וַיִּשְׁמְע֣וּ כָל־יִשְׂרָאֵ֗ל אֶת־הַמִּשְׁפָּט֙ אֲשֶׁ֣ר שָׁפַ֣ט הַמֶּ֔לֶךְ וַיִּֽרְא֖וּ מִפְּנֵ֣י הַמֶּ֑לֶךְ כִּ֣י רָא֔וּ כִּֽי־חָכְמַ֧ת אֱלֹהִ֛ים בְּקִרְבּ֖וֹ לַעֲשׂ֥וֹת מִשְׁפָּֽט׃
vayishmʿv kal-yishraʾel ʾet-hamishpaṭ ʾasher shapaṭ hamelek vayirʾv mipney hamelek kiy raʾv kiy-ḥakmat ʾelohiym bqirbvo laʿasvot mishpaṭ