A year later King Chedorlaomer and his allies attacked and defeated the Rephaites in Ashteroth-Karnaim, the Zuzites in Ham, and the Emites in Shaveh-Kiriathaim.
and up through Hinnom Valley on the land sloping south from Jerusalem. The city of Jerusalem itself belonged to the Jebusites. Next, the border went up to the top of the mountain on the west side of Hinnom Valley and at the north end of Rephaim Valley.
Joshua replied, “If you have so many people that you don't have enough room in the hill country of Ephraim, then go into the forest that belonged to the Perizzites and the Rephaim. Clear out the trees and make more room for yourselves there.”
From there it went to the bottom of the hill at the northern end of Rephaim Valley. The other side of this hill faces Hinnom Valley, which is on the land that slopes south from Jerusalem. The border went down through Hinnom Valley until it reached Enrogel.