11 So keep watch on yourselves, and see that you have love for the Lord your God. 12 For if you go back, joining yourselves to the rest of these nations who are still among you, getting married to them and living with them and they with you: 13 Then you may be certain that the Lord your God will not go on driving these nations out from before you; but they will become a danger and a cause of sin to you, a whip for your sides and thorns in your eyes, till you are cut off from this good land which the Lord your God has given you. 14 Now I am about to go the way of all the earth: and you have seen and are certain, all of you, in your hearts and souls, that in all the good things which the Lord said about you, he has kept faith with you; everything has come true for you. 15 And you will see that, as all the good things which the Lord your God undertook to do for you, have come to you, so the Lord will send down on you all the evil things till he has made your destruction complete, and you are cut off from the good land which the Lord your God has given you. 16 If the agreement of the Lord your God, which was given to you by his orders, is broken, and you become the servants of other gods and give them worship, then the wrath of the Lord will be burning against you, and you will quickly be cut off from the good land which he has given you.

Matthew Henry's Commentary on Joshua 23:11-16

Commentary on Joshua 23:11-16

(Read Joshua 23:11-16)

Would we cleave to the Lord, we must always stand upon our guard, for many a soul is lost through carelessness. Love the Lord your God, and you will not leave him. Has God been thus true to you? Be not you false to him. He is faithful that has promised, Hebrews 10:23. The experience of every Christian witnesses the same truth. Conflicts may have been severe and long, trials great and many; but at the last he will acknowledge that goodness and mercy followed him all the days of his life. Joshua states the fatal consequences of going back; know for a certainty it will be your ruin. The first step would be, friendship with idolaters; the next would be, marrying with them; the end of that would be, serving their gods. Thus the way of sin is down-hill, and those who have fellowship with sinners, cannot avoid having fellowship with sin. He describes the destruction he warns them of. The goodness of the heavenly Canaan, and the free and sure grant God has made of it, will add to the misery of those who shall for ever be shut out from it. Nothing will make them see how wretched they are, so much, as to see how happy they might have been. Let us watch and pray against temptation. Let us trust in God's faithfulness, love, and power; let us plead his promises, and cleave to his commandments, then we shall be happy in life, in death, and for ever.