Deuteronomy 17:9 NIV

9 Go to the priests, who are Levites,1 and to the judge2 who is in office at that time. Inquire of them and they will give you the verdict.3

References for Deuteronomy 17:9