צֶ֥דֶק צֶ֖דֶק תִּרְדֹּ֑ף לְמַ֤עַן תִּֽחְיֶה֙ וְיָרַשְׁתָּ֣ אֶת־הָאָ֔רֶץ אֲשֶׁר־יְהֹוָ֥ה אֱלֹהֶ֖יךָ נֹתֵ֥ן לָֽךְ׃
Justice, justice shall you pursue, that you may thrive and occupy the land that the Eternal your God is giving you.
Torah Temimah points to Sanhedrin 32b (continuation).
אחד לדין ואחד לפשרה, כיצד, שתי ספינות שפגעו זב״ז, אם עוברות שתיהן – שתיהן טובעות, בזו אחר זו – שתיהן עוברות, הא כיצד, טעונה ושאינה טעונה תדחה שאינה טעונה מפני טעונה, וקרובה ושאינה קרובה תדחה קרובה מפני שאינה קרובה, היו שתיהן קרובות שתיהן רחוקות – הטל פשרה ביניהן ומעלות שכר זו לזו.
English: One [“justice”] for strict judgment and one for compromise. How so? Two ships that meet head-on: if both try to pass at once both sink; if they pass one after the other both survive. How is this resolved? A loaded ship and an unloaded ship — the unloaded yields to the loaded; a near ship and a distant ship — the near yields to the distant. If both are equally near or equally distant, impose a compromise between them and they compensate one another for the delay.
The doubled language is also taken to authorize compromise (pesharah) when strict justice would produce an unworkable result.
Derash on the verse (Bavli sugya) — not a formal named middah of the 13. The repetition teaches that justice includes both strict din and equitable compromise.
Courts must pursue both strict justice and fair compromise; when two claims cannot both be satisfied by strict law, the court arranges a just accommodation.