Devarim / Deuteronomy 31:1 · Drash
וַיֵּלֶךְ מֹשֶׁה וַיְדַבֵּר אֶת־הַדְּבָרִים הָאֵלֶּה אֶל־כָּל־יִשְׂרָאֵל׃
And Moshe (Moses) went and spoke these words to all Israel.
Drash דְּרָשׁ
To the Fathers of the World
A last conversation with someone close sometimes seems out of place: why did he say this just now? The midrash notices that this chapter, too, does not stand where you expect it, and explains why.
Lekach Tov: in the order of events, the words "Behold, your days have drawn near to die" and the song "Give ear" would come earlier. But "And Moshe (Moses) went" is placed right after the names of Avraham (Abraham), Yitzchak (Isaac) and Yaakov (Jacob), to say: Moshe went to the fathers of the world.
How Midrash Lekach Tov explain it
Midrash Lekach Tov And he spoke these words to all Israel
This passage is out of order. One would first expect the passage "Behold, your days have drawn near to die" up to "Give ear", and after that he told them the song "Give ear". And it is written: "And Moshe came and spoke all the words of this song in the ears of the people, he and Hoshea the son of Nun" (Devarim / Deuteronomy 32:44).
Why then is this passage, "And he went", placed next to the one before it? Because there the fathers are mentioned, as it says: "which the Eternal swore to your fathers, to Avraham, to Yitzchak and to Yaakov, to give them". Next to that comes "And Moshe went": he went to the fathers of the world.
Takeaway
"Behold, your days have drawn near to die" is verse 31:14 of this chapter. "Give ear" is the beginning of the song Ha'azinu (Devarim / Deuteronomy 32:1).
Hoshea the son of Nun is the earlier name of Yehoshua (Joshua) (Bamidbar / Numbers 13:16).
"To Avraham, to Yitzchak and to Yaakov" are the last words of the previous chapter (Devarim / Deuteronomy 30:20). Kitzur Ba'al HaTurim reads the same closeness of words on the Remez level.