Joshua 24:23
“Now therefore put away, said he, the strange gods which are among you, and incline your heart unto the Lord God of Israel.”
And the people said unto Joshua, Nay; but we will serve the Lord.
And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you the Lord, to serve him. And they said, We are witnesses.
Now therefore put away, said he, the strange gods which are among you, and incline your heart unto the Lord God of Israel.
And the people said unto Joshua, The Lord our God will we serve, and his voice will we obey.
So Joshua made a covenant with the people that day, and set them a statute and an ordinance in Shechem.
Counter-Arguments
The strongest case that this verse does not belong in this theme.

Cross-References
“And Samuel spake unto all the house of Israel, saying, If ye do return unto the Lord with all your hearts, then put away the strange gods and Ashtaroth from among you, and prepare your hearts unto the Lord, and serve him only: and he will deliver you out of the hand of the Philistines.”
“Now therefore fear the Lord, and serve him in sincerity and in truth: and put away the gods which your fathers served on the other side of the flood, and in Egypt; and serve ye the Lord.”
“I have inclined mine heart to perform thy statutes alway, even unto the end.”
“And Joshua said unto the people, Ye cannot serve the Lord: for he is an holy God; he is a jealous God; he will not forgive your transgressions nor your sins.”
“And what agreement hath the temple of God with idols? for ye are the temple of the living God; as God hath said, I will dwell in them, and walk in them; and I will be their God, and they shall be my people.”