Joshua
Joshua 23:12BSB·traditional attribution

For if you turn away and cling to the rest of these nations that remain among you, and if you intermarry and associate with them,

John Calvin Reformed @genevareformer

12. Else if you do in any wise go back, etc According to the usual method observed in the Law, he adds threatening, in order that if they are not sufficiently allured by the divine goodness, they may be aroused by fear to the performance of their duty.

John Gill Reformed Baptist @doctorgill

Else if ye do in any wise go back,.... From the Lord and his worship, from his word and ordinances: and cleave unto the remnant of these nations, even those that remain among you; in cities not taken, or in several which the Philistines were in possession of, or lived among them as tributaries to them, if they should take to them, and be free...

Jamieson-Fausset-Brown Reformed @jfbcommentary

BY THREATENINGS IN CASE OF DISOBEDIENCE. (Jos 23:12) Else if ye do in any wise go back, and cleave unto the remnant of these nations--As marriage connections with the idolatrous Canaanites would present many and strong temptations to transgress it, these were strictly prohibited (Exo 34:12-16; Deu 7:3).