Ezra 7:25shephat
"You, Ezra, according to the wisdom of your God which is in your hand, appoint magistrates and judges that they may judge all the people who are in {the province} beyond the River, {even} all those who know the laws of your God; and you may teach anyone who is ignorant {of them.}
Ezra is told to appoint magistrates to judge people by God's laws.
Daniel 3:2
Then Nebuchadnezzar the king sent {word} to assemble the satraps, the prefects and the governors, the counselors, the treasurers, the judges, the magistrates and all the rulers of the provinces to come to the dedication of the image that Nebuchadnezzar the king had set up.
Magistrates listed among Babylon's officials summoned by Nebuchadnezzar.
Daniel 3:3
Then the satraps, the prefects and the governors, the counselors, the treasurers, the judges, the magistrates and all the rulers of the provinces were assembled for the dedication of the image that Nebuchadnezzar the king had set up; and they stood before the image that Nebuchadnezzar had set up.
The officials, magistrates included, stand before the king's image.