Joshua 22:5

5 But be very careful to keep the commandment and the law that Moses the servant of the LORD gave you: to love the LORD your God, to walk in obedience to him, to keep his commands, to hold fast to him and to serve him with all your heart and with all your soul.”

Read Joshua 22:5 Using Other Translations

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.
Only be very careful to observe the commandment and the law that Moses the servant of the LORD commanded you, to love the LORD your God, and to walk in all his ways and to keep his commandments and to cling to him and to serve him with all your heart and with all your soul."
But be very careful to obey all the commands and the instructions that Moses gave to you. Love the LORD your God, walk in all his ways, obey his commands, hold firmly to him, and serve him with all your heart and all your soul.”

What does Joshua 22:5 mean?

John Gill's Exposition of the Bible
Joshua 22:5

But take diligent heed to do the commandment and the law
The ten commandments, and all other laws, both ceremonial and civil:

which Moses the servant of the Lord charged you;
in the name of the Lord, to keep and observe:

to love the Lord your God;
of which keeping the commands of God is an evidence, and which is the true principle and motive of hearty, sincere, and cheerful obedience to them:

and to walk in all his ways;
which he has prescribed, all his ways of worship, paths of duty, faith, truth, holiness, and righteousness:

and to keep his commandments;
whether moral, ceremonial, or judicial: whether of natural and moral obligation, or of positive institution:

and to cleave unto him;
and not depart from his ways, worship, word, and ordinances:

and to serve him with all your heart, and with all your soul:
in the most strict and affectionate manner. This advice Joshua thought proper to give them, and inculcate into them, now they were about to leave their brethren, and go on the other side Jordan; where they would be at a distance from the tabernacle, altar, and service of God, and might be under temptation to relinquish it, and set up another form of worship elsewhere.

California - Do Not Sell My Personal Information  California - CCPA Notice