The Israelites, forever turning away from God, practiced Molech worship and built high places for Baal (Jeremiah 32:35). Although Solomon built the temple of God in Jerusalem, he later established idolatrous high places for his foreign wives outside of Jerusalem and worshiped with them, causing him the loss of the kingdom (1 Kings 11:11). The people were still sacrificing at the pagan high places before the temple was built, and Solomon joined them. After the Lord appeared to him in a dream at Gibeon, the king returned to Jerusalem and sacrificed offerings; however, he continued to waver between the two places of worship.