So Moses wrote the song that very day and taught it to the Israelis. 