Shemot / Exodus 15:1
אָז יָשִׁיר־מֹשֶׁה וּבְנֵי יִשְׂרָאֵל אֶת־הַשִּׁירָה הַזֹּאת לַיהוָה וַיֹּאמְרוּ לֵאמֹר אָשִׁירָה לַיהוָה כִּי־גָאֹה גָּאָה סוּס וְרֹכְבוֹ רָמָה בַיָּם׃
Then Moshe and the children of Israel sang this song to the Eternal, and they spoke, saying: "I will sing to the Eternal, for He is highly exalted, the horse and its rider He has thrown into the sea.
Pshat פְּשָׁט
"Will sing": in the future tense
Rashi: "will sing" is in the future tense because it speaks of a thought: seeing the miracle, Moshe (Moses) resolved to sing, and sang. So too with Yehoshua (Joshua), and in the song of the well. And the sages see in this word a hint from the Torah of the resurrection of the dead. The future tense cannot be read here as a habit: the song at the sea happened once.
How Rashi explain it
Remez רֶמֶז
Ten songs
Kitzur Ba'al HaTurim: "then sang" occurs also in the song of the well, so Moshe (Moses) sang there too, though his name is not given. With the word "then", with which Moshe complained about Pharaoh, he begins praise. The letter yod (י) in the word "will sing" is ten songs. And "I will sing" links the Sea of Reeds with the brook Kishon in Devorah's (Deborah's) song.
How Kitzur Ba'al HaTurim explain it
Drash דְּרָשׁ
They believed, and they sang
Shemot Rabbah: in Egypt the people believed, and then stopped believing again. At the sea they saw how the Holy One, blessed is He, executes judgement on the wicked, and believed. For this faith the spirit of holiness rested on them, and they sang. The word "then" itself speaks of trust.
How Shemot Rabbah explain it
Sod סוֹד
Joy grows from words
Kedushat Levi: the main joy is in the heart, but in the heart it breaks off. When a person speaks during joy, the joy is stirred and grows. Therefore at the sea the children of Israel passed from joy of the heart to speech and sang, so that the joy would not break off. Hence "and they spoke, saying": they spoke so as to speak more and more.
How Kedushat Levi explain it