Judges 18:1–31 (ESV)

1 In those days there was no king in Israel. And in those days the tribe of the people of Dan was seeking for itself an inheritance to dwell in, for until then no inheritance among the tribes of Israel had fallen to them.

The Lord uses the Danite migration to show that idolatry, while at times successful, is always foolish.