Deuteronomy 31:22

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