Judges 18:30
And the children of Dan set up the graven image: and Jonathan, the son of Gershom, the son of Manasseh, he and his sons were priests to the tribe of Dan until the day of the captivity of the land. And the children of Dan set up the graven image: and Jonathan, the son of Gershom, the son of Manasseh, he and his sons were priests to the tribe of Dan until the day of the captivity of the land.
Chapters 17-21 stand out of chronological order, so the setting up of the image records events from the early part of the judges' history rather than from its end, and the continuous story of the book ends with chapter 16. The Danites took Micah's idols and his priest to Laish, conquered the city, and renamed it Dan. There at Dan the children of Dan set up the graven image and established an idolatrous rival sanctuary and worship.
The verse identifies Micah's former Levite as Jonathan the son of Gershom, and records that he and his sons and descendants served as priests to the tribe of Dan. The name Manasseh is an altered form of the Hebrew Mosheh, meaning Moses, and Gershom's son Shebuel in 1 Chronicles 23:15-16 shows Jonathan was Moses' grandson, Jonathan being the same as Shebuel. This priesthood and worship of the image continued until the day of the captivity of the land.
That captivity is maintained to have lasted until the captivity of the ten tribes. Those who understand it as the Philistine capture of the country place its end when the ark was captured and Israel grieved its loss. The verse belongs to the closing part of Judges showing the book was not written until about the time there was a king in Israel, and the book was written by Samuel or Nathan.
The verse is part of a record of Israel's backsliding and the disgrace and punishment that followed, showing backsliding is not without punishment. It shows the disorder and moral corruption prevailing when people did what seemed right to them, when human judgment without God's revelation is so distorted that wrong appears right and right appears wrong. It depicts deeply unsatisfactory conditions in Israel, including subjection to heathen peoples, loss of the land, delayed repentance, and only partial deliverance through God's mercy, showing the low state into which Israel had fallen before Samuel's call. The apostasy in Judges 18 was Dan's first apostasy, suggested as the reason the tribe was left out of the 144,000 listed in Revelation 7.