The Mishnah taught that "one inquired the Urim and Thummim only for a king." The Gemara asked what the Scriptural basis was for this teaching. The Gemara answered that Rabbi Abbahu read "And he shall stand before Eleazar the priest, who shall inquire for him by the judgment of the Urim . . . ; at his word shall they go out . . . , both he, and all the children of Israel with him, even all the congregation," to teach that "he" (that is, Joshua) meant the king, "and all the children of Israel with him" (that is, Eleazar) meant the priest Anointed for Battle, and "even all the congregation" meant the Sanhedrin.