"Lest there should be among you man, or
woman, or family, or tribe, whose heart
turneth away this day from the LORD
our God, to go and serve the gods of these
nations;. . . . . and all the curses that are
written in this book shall lie upon him,
and the LORD shall blot out his name
from under heaven."
Deuteronomy 29:18-20

That is exactly what the tribes of Ephraim
and Dan were guilty of when they let
Jeroboam set up golden calves in Bethel
and at Dan.