Joshua 23:6

6 and ye have been very strong to keep and to do the whole that is written in the Book of the Law of Moses, so as not to turn aside from it right or left,

Joshua 23:6 Meaning and Commentary

Joshua 23:6

Be ye therefore very courageous to keep and to do all that is
written in the book of the law of Moses
To observe which required spiritual strength, fortitude of mind, a holy courage, a firm and fixed resolution, and particularly to destroy the Canaanites required in that book, and to abstain from all communion and fellowship with them:

that ye turn not aside therefrom, [to] the right hand or the left;
(See Gill on Joshua 1:7).

Joshua 23:6 In-Context

4 see, I have caused to fall to you these nations who are left for an inheritance to your tribes, from the Jordan, (and all the nations which I cut off), and the great sea, the going in of the sun
5 `As to Jehovah your God, He doth thrust them from your presence, and hath dispossessed them from before you, and ye have possessed their land, as Jehovah your God hath spoken to you,
6 and ye have been very strong to keep and to do the whole that is written in the Book of the Law of Moses, so as not to turn aside from it right or left,
7 so as not to go in among these nations, these who are left with you; and of the name of their gods ye do not make mention, nor do ye swear, nor do ye serve them, nor do ye bow yourselves to them;
8 but to Jehovah your God ye do cleave, as ye have done till this day.
Young's Literal Translation is in the public domain.