Vayikra26:6

וְנָתַתִּי שָׁלוֹם בָּאָרֶץ וּשְׁכַבְתֶּם וְאֵין מַחֲרִיד וְהִשְׁבַּתִּי חַיָּה רָעָה מִן־הָאָרֶץ וְחֶרֶב לֹא־תַעֲבֹר בְּאַרְצְכֶם׃

And I will give peace in the land, and you will lie down with none to make you afraid, and I will remove the wild beast from the land, and no sword will pass through your land.

Vayikra 26:6

וְנָתַתִּי שָׁלוֹם בָּאָרֶץ

Vayikra / Leviticus 26:6

וְנָתַתִּי שָׁלוֹם בָּאָרֶץ וּשְׁכַבְתֶּם וְאֵין מַחֲרִיד וְהִשְׁבַּתִּי חַיָּה רָעָה מִן־הָאָרֶץ וְחֶרֶב לֹא־תַעֲבֹר בְּאַרְצְכֶם׃

And I will give peace in the land, and you will lie down with none to make you afraid, and I will remove the wild beast from the land, and no sword will pass through your land.

Pshat פְּשָׁט

Peace equals everything

Rashi: there is food and drink, but if there is no peace there is nothing, so after all the good things it says "And I will give peace in the land": peace equals everything. A sword will not even pass through your land on its way to another country. Netziv: the peace will be so complete that you will lose the habit of using a sword.

How Rashi and Haamek Davar explain it

Remez רֶמֶז

One changed word

Rashi proves that peace equals everything with the words "He makes peace and creates everything." Chizkuni notes: the prophet's verse says "makes peace and creates evil." Bartenura: it is not a verse of Scripture, but the sages set these words in the morning prayer, so Rashi quotes them as a verse.

How Chizkuni and Bartenura explain it

Drash דְּרָשׁ

The sword that came in peace

The Talmud tells: King Yoshiyahu (Josiah) read in our verse that even a peaceful sword would not pass through the land, and went out against Pharaoh Necho, who was passing by. He did not take counsel with the prophet Yirmeyahu (Jeremiah) and did not know that his generation was not worthy of it. As he was dying, he accepted the justice of the judgment upon himself.

How Talmud, Taanit explain it

Sod סוֹד

The land is the heart

Degel Machaneh Ephraim: "the land" is the righteous, for their children are called "the fruit of the land," and the promise "I will give peace in the land" is peace among the righteous. Rabbeinu Bahya: the land is the heart, and the peace the Eternal gives in the land He gives in a person's heart. Peace is increased by those who learn: "great is the peace of your children."

How Degel Machaneh Ephraim and Rabbeinu Bahya explain it