כִּֽי־יִהְיֶ֨ה לָהֶ֤ם דָּבָר֙ בָּ֣א אֵלַ֔י וְשָׁ֣פַטְתִּ֔י בֵּ֥ין אִ֖ישׁ וּבֵ֣ין רֵעֵ֑הוּ וְהוֹדַעְתִּ֛י אֶת־חֻקֵּ֥י הָאֱלֹהִ֖ים וְאֶת־תּוֹרֹתָֽיו׃
אַז זײ האָבן אַ זאַך, קומט זי פֿאַר מיר, און איך משפּט צװישן אַ מאַן און צװישן זײַן חבֿר, און מאַך װיסן די געזעצן פֿון גאָט און זײַנע לערנונגען.
Rashi
כי יהיה להם דבר בא WHEN THEY HAVE A MATTER THEY COME (lit., “he comes”) — “He”, viz., who has the matter comes to me.
Chizkuni
את חוקי האלוקים ואת תורותיו, “G-d’s statutes and His teachings.” Moses refers to the statutes and teachings that G-d had already taught him prior to the revelation at Mount Sinai, and his ascending that Mountain to receive the whole Torah. Those teachings had been referred to when the people had been encamped around Marah when the bitter waters had been turned into sweet waters (Exodus 15,25)
Sforno
כי יהיה להם דבר, when someone among these people who hold positions of public trust has a disagreement with one of his colleagues he brings it to me,