Bible Trivia Question for Monday 12/11/2017

Jesus talks about being a Judge in the Gospel of John.  Where in particular was this predicted in the Old Testament?