Moses therefore wrote this song the same day, and taught it the children of Israel.
So that very day Moses wrote down this song and taught it to the Israelites.
Read Deuteronomy 31