Deuteronomy 2:1

Then we turned, and took our journey into the wilderness by the way of the Red sea, as the LORD spake unto me: and we compassed mount Seir many days.

The verse records Israel turning to take their journey into the wilderness by the way of the Red Sea in obedience to the direction the Lord had given, compassing Mount Seir for many days. The turn described was northward, made after they had traveled to the south of Edom around Mount Seir. From there the journey continued to the east of Moab, whose land they were commanded not to seize because God had given it to the descendants of Lot.