Deuteronomy 13:7

Namely, of the gods of the people which are round about you, nigh unto thee, or far off from thee, from the one end of the earth even unto the other end of the earth;

Cross-references

Deuteronomy 6:14 repeats the command not to go after other gods of surrounding peoples — directly reinforcing the same warning in Deuteronomy 13:7.

Joshua 24:15 presents a choice to serve the Lord or the gods of the Amorites — echoing the Deuteronomy warning against being enticed by neighboring gods.