Deuteronomy 31:28

28 `Assemble unto me all the elders of your tribes, and your authorities, and I speak in their ears these words, and cause to testify against them the heavens and the earth,

Deuteronomy 31:28 Meaning and Commentary

Deuteronomy 31:28

Gather unto me all the elders of your tribes, and your
officers
The heads of the tribes, the princes, and all other inferior magistrates:

that I may speak these words in their ears;
not the words of the law, but of the song which he was ordered to write, and is recorded in the following chapter:

and call heaven and earth to record against them;
to bear witness of what he delivered to them, and to bear witness against them should they transgress the laws he gave them; and to bear witness that they had been faithfully cautioned against transgressing, and had been severely threatened, and the punishment plainly pointed out that should be inflicted on them in case of disobedience, so that they were left entirely without excuse.

Deuteronomy 31:28 In-Context

26 `Take this Book of the Law, and thou hast set it on the side of the ark of the covenant of Jehovah your God, and it hath been there against thee for a witness;
27 for I -- I have known thy rebellion, and thy stiff neck; lo, in my being yet alive with you to-day, rebellious ye have been with Jehovah, and also surely after my death.
28 `Assemble unto me all the elders of your tribes, and your authorities, and I speak in their ears these words, and cause to testify against them the heavens and the earth,
29 for I have known that after my death ye do very corruptly, and have turned aside out of the way which I commanded you, and evil hath met you in the latter end of the days, because ye do the evil thing in the eyes of Jehovah, to make Him angry with the work of your hands.'
30 And Moses speaketh in the ears of all the assembly of Israel the words of this song, till their completion: --
Young's Literal Translation is in the public domain.