Deut 31:22

22That very day Moses wrote this song and taught it to the Israelites.