But be very careful to observe the commandment and the law that Moses the servant of the LORD gave you: to love the LORD your God, to walk in all His ways, to keep His commandments, to hold fast to Him, and to serve Him with all your heart and with all your soul.”
5. But take diligent heed, etc He thus releases and frees them from temporary service, that he may bind them for ever to the authority of the one true God. He therefore permits them to return home, but on the condition that wherever they may be they are to be the soldiers of God; and he at the same time prescribes the mode, namely, the observance of his Law.
So Joshua blessed them, and sent them away,.... Dismissed them from his presence with a blessing, in order to go to their own country; this he did by wishing them well, praying to God for a blessing on them, their persons, and families, who had been so useful in assisting their brethren to get possession of the land of Canaan.
But take diligent heed to do the commandment and the law, which Moses the servant of the LORD charged you, to love the LORD your God, and to walk in all his ways, and to keep his commandments, and to cleave unto him, and to serve him with all your heart and with all your soul. (c) He shows where fulfilling the Law consists.