Moses gives speeches about laws and the importance of following God before the Israelites enter the Promised Land.
And I charged your judges at that time, saying, Hear the causes between your brethren, and judge righteously between every man and his brother, and the stranger that is with him.