Deuteronomy 31:24

24 So it was, when Moses had completed writing the words of this law in a book, when they were finished,

Deuteronomy 31:24 Meaning and Commentary

Deuteronomy 31:24

And it came to pass, when Moses had made an end of writing
the words of this law in a book
In this book of Deuteronomy, and which concluded the Pentateuch:

until they were finished;
all the words of the law, and the whole five books of Moses, excepting some few verses, ( Deuteronomy 34:1-12 ) , which were added by another hand, Joshua or Ezra.

Deuteronomy 31:24 In-Context

22 Therefore Moses wrote this song the same day, and taught it to the children of Israel.
23 Then He inaugurated Joshua the son of Nun, and said, "Be strong and of good courage; for you shall bring the children of Israel into the land of which I swore to them, and I will be with you."
24 So it was, when Moses had completed writing the words of this law in a book, when they were finished,
25 that Moses commanded the Levites, who bore the ark of the covenant of the Lord, saying:
26 "Take this Book of the Law, and put it beside the ark of the covenant of the Lord your God, that it may be there as a witness against you;
Scripture taken from the New King James Version. Copyright © 1982 by Thomas Nelson, Inc. Used by permission. All rights reserved.