Verses 28–43 describe how YHVH has determined to speak to the Israelites through the extremity of their need, to lead them to a better mind, and to grant them victory over their foes.
Dtr2 is believed to have been produced as a reaction to the Kingdom of Judah being sent into its Babylonian exile, and thus to Dtr1's (the hypothesised first edition of Deuteronomy) positive outlook, and suggestion of an upcoming golden age, being somewhat no longer appropriate.
Though both Jewish and Christian sources have traditionally attributed the Song to Moses, the conditions presupposed by the poem render the Mosaic authorship of it impossible according to critical commentary.
George E. Mendenhall from the University of Michigan assigns it to the period just after the defeat of the Israelite militia at the battle of Eben-Ezer, and its authorship to the prophet Samuel: When all of Deuteronomy 31:14–23 was referred to JE, the poem was believed to be anterior thereto, and was believed to be contemporary with the Assyrian wars under Jehoash and Jeroboam II (c. 780 BCE).
To this period it is referred by August Dillmann, Schrader, Samuel Oettli, Heinrich Ewald, Adolf Kamphausen and Edouard Guillaume Eugène Reuss.
[10] Both Songs of Moses, as with Habakkuk 3 (Domine Audivi), and 1 Samuel 2 (Exultavit Cor Meum) are counted as canticles in church use.