"And He wrote upon the tablets [the words of the covenant, the Ten Commandments]" (Exodus 34:28) — for the first and the second were identical. And how were they written? Ten commandments, five upon this tablet and five upon that tablet, as it is said: "the Ten Commandments."
The Two Tablets at Sinai and Why First Equaled Second
Midrash Tanchuma Buber, Ki Tisa 20:1
ויכתוב על הלוחות [את דברי הברית עשרת הדברים] (שמות לד כח), שהיו שוים הראשונים והשניים, וכיצד היו כתובים, י' דברות, ה' על לוח זה וה' על לוח זה, שנאמר עשרת הדברים.