Judges and officers shalt thou make thee in all thy gates, which the Lord thy God giveth thee, according to thy tribes: and they shall judge the people with righteous judgment.