Devarim 17:8

8 If there arise a matter too hard for thee in mishpat, between dahm and dahm, between din and din, and between nega and nega, being matters of controversy within thy she’arim, then shalt thou arise, and get thee up into the place which Hashem Eloheicha shall choose;