Jeremiah33:25

כֹּה אָמַר יְהוָה אִם־לֹא בְרִיתִי יוֹמָם וָלָיְלָה חֻקּוֹת שָׁמַיִם וָאָרֶץ לֹא־שָׂמְתִּי׃

Thus says the Eternal: "If My covenant with day and night did not stand, if I had not set the laws of heaven and earth,

Jeremiah 33:25

כֹּה אָמַר יְהוָה

Yirmeyahu / Jeremiah 33:25 · Drash

Jeremiah 33:25

כֹּה אָמַר יְהוָה אִם־לֹא בְרִיתִי יוֹמָם וָלָיְלָה חֻקּוֹת שָׁמַיִם וָאָרֶץ לֹא־שָׂמְתִּי׃

Thus says the Eternal: "If My covenant with day and night did not stand, if I had not set the laws of heaven and earth,

Drash דְּרָשׁ

A world on condition

If "My covenant" is the Torah, then heaven and earth stand on it. The sages tell what follows from this for the one who learns, and for the whole world.

The sages of the Talmud read "My covenant" as the Torah, on which heaven and earth stand. Rabbi Elazar: if not for the Torah, they would not stand. And still Rav Sheshet rejoiced in his learning: "for you, my soul", for at first a person learns for himself. Reish Lakish: at the creation of the world the Creator set it a condition: if Israel accept the Torah, the world will stand, and if not, it will return to emptiness and chaos.

How Talmud, Pesachim and Talmud, Avodah Zarah explain it

Talmud, Pesachim If not My covenant

Every thirty days Rav Sheshet reviewed all he had learned, stood at the doorway and said: "Rejoice, my soul, rejoice, my soul! For you I read Scripture, for you I learned Mishnah." Is that so? Did not Rabbi Elazar say: if not for the Torah, heaven and earth would not stand, as it says: "If not My covenant day and night, I would not have set the laws of heaven and earth" (Yirmeyahu / Jeremiah 33:25)? But at first, when a person does something, he does it for himself.

Talmud, Avodah Zarah If not My covenant

They say before Him: "Master of the world! Heaven and earth are interested witnesses", as it says: "If not My covenant day and night, I would not have set the laws of heaven and earth" (Yirmeyahu / Jeremiah 33:25). For Reish Lakish said: what is meant by what is written, "And there was evening and there was morning, the sixth day" (Bereshit / Genesis 1:31)? It teaches that the Holy One, blessed is He, set a condition with the works of creation and said: "If Israel accept My Torah, good. And if not, I will return you to emptiness and chaos (תֹהוּ וָבֹהוּ)".

Takeaway

The Talmud asks how he could say "for you, my soul" if the Torah holds up the whole world, and answers: at first a person learns for himself, and the benefit to the world comes along with it.
In tractate Avodah Zarah the nations of the world say in the future that they kept the Torah, and the Creator calls heaven and earth as witnesses. The nations object: heaven and earth are interested, for they exist only thanks to the Torah (Avodah Zarah 3a).
The sages link the extra letter hei (ה) in the word "the sixth" (הַשִּׁשִּׁי) with the sixth day of the month of Sivan, when Israel received the Torah (Shabbat 88a).