From there he moved on to the hill at the east of Bethel and pitched his tent with Bethel on the west and Ai on the east, and there too he built an altar to the Lord and prayed to him.