Arcana Coelestia #1454
1454. 'And he built an altar to Jehovah' means external worship of His Father arising out of that state. This is clear from the meaning of 'an altar' as the chief representative in worship, 921.
Amos 5:5-7
5
but don't seek Bethel, nor enter into Gilgal, and don't pass to Beersheba: for Gilgal shall surely go into captivity, and Bethel shall come to nothing.
6
Seek Yahweh, and you will live; lest he break out like fire in the house of Joseph, and it devour, and there be no one to quench it in Bethel.
7
You who turn justice to wormwood, and cast down righteousness to the earth: