In the beginning of Joshua is a comment on the importance of keeping of God's command to be prosperous. The same thought appears in his farewell address in the context of remembering what God had done for them. Joshua called on the people to make the choice to follow the Lord.