"In his careful safeguarding of the rights and liberties of his subjects, Jehoshaphat emphasized the consideration that every member of the human family receives from the God of justice, who rules over all. “God standeth in the congregation of the mighty; He judgeth among the gods.” And those who are appointed to act as judges under Him, are to “defend the poor and fatherless;” they are to “do justice to the afflicted and needy,” and “rid them out of the hand of the wicked.” Psalm 82:1, 3, 4 . PK 198.2"
EGW directly quotes Psalm 82:1, 3, and 4 in the passage.