Joshua 23:6

6 Therefore be very steadfast to observe and do all that is written in the book of the law of Moses, turning aside from it neither to the right nor to the left,

Joshua 23:6 In-Context

4 I have allotted to you as an inheritance for your tribes those nations that remain, along with all the nations that I have already cut off, from the Jordan to the Great Sea in the west
5 The Lord your God will push them back before you, and drive them out of your sight; and you shall possess their land, as the Lord your God promised you.
6 Therefore be very steadfast to observe and do all that is written in the book of the law of Moses, turning aside from it neither to the right nor to the left,
7 so that you may not be mixed with these nations left here among you, or make mention of the names of their gods, or swear by them, or serve them, or bow yourselves down to them,
8 but hold fast to the Lord your God, as you have done to this day.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.