Bamidbar10:35

וַיְהִי בִּנְסֹעַ הָאָרֹן וַיֹּאמֶר מֹשֶׁה קוּמָה יְהוָה וְיָפֻצוּ אֹיְבֶיךָ וְיָנֻסוּ מְשַׂנְאֶיךָ מִפָּנֶיךָ׃

When the ark set out, Moshe would say: "Rise up, Eternal, and let Your enemies be scattered, and let those who hate You flee before You!"

Bamidbar 10:35

וַיְהִי בִּנְסֹעַ הָאָרֹן

Bamidbar / Numbers 10:35 · Drash

Bamidbar 10:35

וַיְהִי בִּנְסֹעַ הָאָרֹן וַיֹּאמֶר מֹשֶׁה קוּמָה יְהוָה וְיָפֻצוּ אֹיְבֶיךָ וְיָנֻסוּ מְשַׂנְאֶיךָ מִפָּנֶיךָ׃

When the ark set out, Moshe would say: "Rise up, Eternal, and let Your enemies be scattered, and let those who hate You flee before You!"

Drash דְּרָשׁ

A book inside a book

Sometimes two sentences weigh as much as a whole book. How can a short passage become a book of its own?

Bereshit Rabbah: Yitzchak dug wells. Rabbi Yehudah says: four, for the four banners in the wilderness. The sages say: five, for the five books of the Torah. The well "Shivah" ("seven") is the book of Bamidbar, with which the books of the Torah become seven: Bar Kappara divides it into three books, and the two verses "when the ark set out" are a book of their own. Rabban Shimon ben Gamliel disagrees with Rabbi: this section will be removed from here and written in its place, and it stands here to separate one punishment from another.

How Bereshit Rabbah and Talmud, Shabbat explain it

Bereshit Rabbah Yitzchak's wells

"And Yitzchak dug again" (Bereshit / Genesis 26:18). How many wells did our father Yitzchak dig in Be'er Sheva? Rabbi Yehudah said: four, and corresponding to them his descendants became four banners in the wilderness. And the sages say: five, for the five books of the Torah. "And he named the well Esek ('strife')": for the book of Bereshit, in which the Holy One, blessed is He, "was busy" (נִתְעַסֵּק) creating the world. "And he named it Sitnah ('hostility')": for the book of Shemot, because of the words "and they made their lives bitter with hard labour" (Shemot / Exodus 1:14). "And they found there a well of living water": for the book of Vayikra, which is full of many laws. "And he named it Shivah ('seven')": for the book of Bamidbar, which makes the books of the Torah seven. But are they not five? Only Bar Kappara makes Bamidbar into three books: from the beginning to "when the ark set out" is a book of its own, "when the ark set out" with the next verse is a book of its own, and from the end of that passage to the end of the book is a book of its own. "And he named it Rechovot ('room')": for Mishneh Torah, because of the words "when He will enlarge" (Devarim / Deuteronomy 12:20): "for now the Eternal has made room for us, and we shall be fruitful in the land" (Bereshit / Genesis 26:22).

Talmud, Shabbat It will be removed from here

Who is the sage who disagrees with Rabbi? It is Rabban Shimon ben Gamliel, as it was taught: Rabban Shimon ben Gamliel says: in the future this section will be removed from here and written in its place. And why is it written here? To separate the first punishment from the second. What is the second punishment? "And the people were as complainers" (Bamidbar / Numbers 11:1). What is the first? "And they set out from the mountain of the Eternal" (Bamidbar / Numbers 10:33), and Rabbi Chama bar Chanina said: they turned away from following the Eternal. And where is its place? Rav Ashi said: in the section of the banners.

Takeaway

Rabbi is Rabbi Yehudah HaNasi, the compiler of the Mishnah. In his view the markers stand not because this is not the place of these verses, but because it is an important book of its own (Shabbat 115b–116a).
Mishneh Torah ("repetition of the Torah") is an ancient name of the book of Devarim (Deuteronomy).
The section of the banners is the order of the tribes around the Mishkan and on the way (Bamidbar / Numbers 2). According to Rav Ashi, the words about the ark on the way belong there.
So for Bar Kappara the Torah has seven books: Bereshit, Shemot, Vayikra, the three books of Bamidbar, and Devarim.