Deuteronomy 16:15-16

16:15 You are to celebrate the festival seven days before the Lord your God in the place he chooses, for he will bless you in all your productivity and in whatever you do; so you will indeed rejoice! 16:16 Three times a year all your males must appear before the Lord your God in the place he chooses for the Festival of Unleavened Bread, the Festival of Weeks, and the Festival of Temporary Shelters; and they must not appear before him empty-handed.

Deuteronomy 17:8

Appeal to a Higher Court

17: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.