"And these are the ordinances" (Exodus 21:1). Rabbi Ishmael says: These [the civil laws] add to the earlier ones [the Ten Commandments]; just as the earlier ones were from Sinai, so too the later ones were from Sinai. Rabbi Akiva says: "And these are the ordinances" - why is it said? Because it says elsewhere, "Speak to the children of Israel and say to them" (Leviticus 1:2) - teach it twice and three and four times until they learn it, as it is said, "and teach it to the children of Israel" (Deuteronomy 31:19). One might think they should learn but not repeat it; the verse teaches, "put it in their mouths" (same). Or that they should repeat it but not understand it; the verse teaches, "And these are the ordinances" - arrange them before them like a set table, as it is said, "You have been shown, that you might know" (Deuteronomy 4:35). Rabbi Judah says: "And these are the ordinances" - they were spoken at Marah, as it is said, "There He made for them a statute and an ordinance" (Exodus 15:25). Rabbi Eleazar ben Azariah says: But consider the nations who judge according to the law of Israel - I might hear that their rulings should stand; the verse teaches, "And these are the ordinances" - you judge their cases, but they do not judge yours. From here they said: a coerced bill of divorce is valid when [the coercion is] by Israel, but invalid when by heathens. Yet among the heathens they may beat him and say to him, "Do what Israel tells you." Rabbi Shimon bar Yochai says: What did the laws of justice see fit to precede all the commandments in the Torah? Because when there is a dispute between a person and his fellow, there is strife between them; once the case is decided for them, peace is made between them. And so Jethro said to Moses, "and also all this people will come to their place in peace" (Exodus 18:23).
Why the Civil Laws Were Given First to Make Peace
Yalkut Shimoni on Torah 309:1
וְאֵלֶּה הַמִּשְׁפָּטִים, רַבִּי יִשְׁמָעֵאל אוֹמֵר, אֵלּוּ מוֹסִיפִין עַל הָעֶלְיוֹנִים, מָה עֶלְיוֹנִים מִסִּינַי, אַף תַּחְתּוֹנִים מִסִּינָי. רַבִּי עֲקִיבָא אוֹמֵר, וְאֵלֶּה הַמִּשְׁפָּטִים, לָמָּה נֶאֱמַר, לְפִי שֶׁהוּא אוֹמֵר (ויקרא א, ב) "דַּבֵּר אֶל בְּנֵי יִשְׂרָאֵל וְאָמַרְתָּ אֲלֵיהֶם", שְׁנֵה וְשַׁלֵּשׁ וְרַבֵּעַ עַד שֶׁיִּלְמְדוּ, שֶׁנֶּאֱמַר (דברים לא, יט) "וְלַמְּדָהּ אֶת בְּנֵי יִשְׂרָאֵל". יָכוֹל לְמֵדִין וְלֹא שׁוֹנִין, תַּלְמוּד לוֹמַר "שִׂימָהּ בְּפִיהֶם". אוֹ שׁוֹנִים וְלֹא יוֹדְעִים תַּלְמוּד לוֹמַר וְאֵלֶּה הַמִּשְׁפָּטִים, עָרְכֵם לִפְנֵיהֶם כְּשֻׁלְחָן עָרוּךְ, שֶׁנֶּאֱמַר (דברים ד, לה) "אַתָּה הָרְאֵתָ לָדַעַת". רַבִּי יְהוּדָה אוֹמֵר וְאֵלֶּה הַמִּשְׁפָּטִים, בְּמָרָה נֶאֶמְרוּ, שֶׁנֶּאֱמַר (שמות טו, כה) "שָׁם שָׂם לוֹ חֹק וּמִשְׁפָּט". רַבִּי אֶלְעָזָר בֶּן עֲזַרְיָה אוֹמֵר, וַהֲרֵי הַגּוֹיִם שֶׁדָּנוּ כְּדִינֵי יִשְׂרָאֵל, שׁוֹמֵעַ אֲנִי יִהְיוּ דִּינֵיהֶן קַיָּמִין, תַּלְמוּד לוֹמַר וְאֵלֶּה הַמִּשְׁפָּטִים, אַתָּה דָן אֶת שֶׁלָּהֶם וְהֵם אֵינָן דָּנִין אֶת שֶׁלָּכֶם. מִכַּאן אָמְרוּ, גֵּט הַמְּעֻשֶּׂה בְּיִשְׂרָאֵל כָּשֵׁר, וּבְגוֹיִם פָּסוּל. וּבְגוֹיִם חוֹבְטִין אוֹתוֹ, וְאוֹמְרִים לוֹ עֲשֵׂה מַה שֶּׁיִּשְׂרָאֵל אוֹמְרִין לְךָ. רַבִּי שִׁמְעוֹן בַּר יוֹחַאי אוֹמֵר, מַה רָאוּ דִינִים לְקַדֵּם כָּל הַמִּצְוֹת שֶׁבַּתּוֹרָה, שְׁכְּשֶׁהַדִין בֵּין אָדָם לַחֲבֵרוֹ, תַּחֲרוּת בֵּינֵיהֶן, נִפְסַק לָהֶם הַדִּין, נַעֲשָׂה שָׁלוֹם בֵּינֵיהֶן. וְכֵן יִתְרוֹ אָמַר לְמֹשֶׁה, (שמות יח, כג) "וְגַם כָּל הָעָם הַזֶּה עַל מְקֹמוֹ יָבֹא בְשָׁלוֹם".