Deuteronomy 17:8
7 The witnesses must be first to begin the execution, and then all the people are to join in afterward. In this way you will purge the evil from among you. 8 If a matter is too difficult for you to judge—bloodshed, legal claim, or assault—matters of controversy in your villages—you must leave there and go up to the place the Lord your God chooses. 9 You will go to the Levitical priests and the judge in office in those days and seek a solution; they will render a verdict. 10 You must then do as they have determined at that place the Lord chooses. Be careful to do just as you are taught.
2 Kings 22:13
12 The king ordered Hilkiah the priest, Ahikam son of Shaphan, Achbor son of Micaiah, Shaphan the scribe, and Asaiah the king’s servant, 13 “Go, inquire of the Lord for me and the people—for all Judah. Find out about the words of this scroll that has been discovered. For the Lord’s great fury has been ignited against us, because our ancestors have not obeyed the words of this scroll by doing all that it instructs us to do.” 14 So Hilkiah the priest, Ahikam, Achbor, Shaphan, and Asaiah went to Huldah the prophetess, the wife of Shullam son of Tikvah, the son of Harhas, the supervisor of the wardrobe. (She lived in Jerusalem in the Mishneh district.) They stated their business, 15 and she said to them: “This is what the Lord God of Israel has said: ‘Say this to the man who sent you to me: 16 “This is what the Lord has said: ‘I am about to bring disaster on this place and its residents, all the things in the scroll that the king of Judah has read.
Notes and References
"... In D, Moses instructs that, if a matter of law is too difficult, one should inquire what to do via a priest or judge at the chosen place (Deuteronomy 17:8-12). Only one king in the Deuteronomistic history is ever pictured as doing this: Josiah. He inquires via the priest Hilkiah at Jerusalem (2 Kings 22:13, 18) ..."
Friedman, Richard Elliott The Bible with Sources Revealed: A New View Into the Five Books of Moses (p. 24) Harper San Francisco, 2005