From there he moved to the mountain to the east of Beth-El and erected his tent (with Beth-El to the west and Ai to the east). There he built an altar to Adonai and called on the Name of Adonai.
So Moses wrote down all the words of Adonai, then rose up early in the morning, and built an altar below the mountain, along with twelve pillars for the twelve tribes of Israel.